Flare-related speedup:

- r_flareDelay - delays the glReadPixels every specified tics to keep the video bus from being congested by excess reads (maps with way too many flares (i.e. pvomit) sohuld not slow down as much as before)
- TestFlareFast actually now is working as intended because of it
- normal high quality flare functionality moved to r_flareQuality 2.
- r_flareQuality default is now 1.
This commit is contained in:
leilei-
2016-02-22 00:47:59 -05:00
parent 444e8bc25f
commit ed43aa0c02
3 changed files with 112 additions and 73 deletions

View File

@@ -1234,6 +1234,7 @@ extern cvar_t *r_flareFade;
extern cvar_t *r_flareQuality;
extern cvar_t *r_flareSun;
extern cvar_t *r_flareMethod;
extern cvar_t *r_flareDelay;
// coefficient for the flare intensity falloff function.
#define FLARE_STDCOEFF "150"