grievre's patch to trade (minor) frame rate for frame (non-)latency

This commit is contained in:
Bill Currie 2004-07-10 02:32:30 +00:00
parent 0d6af140b8
commit cefc6df98c
3 changed files with 9 additions and 0 deletions

View file

@ -21,6 +21,7 @@ extern struct cvar_s *gl_dlight_polyblend;
extern struct cvar_s *gl_dlight_smooth; extern struct cvar_s *gl_dlight_smooth;
extern struct cvar_s *gl_fb_bmodels; extern struct cvar_s *gl_fb_bmodels;
extern struct cvar_s *gl_fb_models; extern struct cvar_s *gl_fb_models;
extern struct cvar_s *gl_finish;
extern struct cvar_s *gl_keeptjunctions; extern struct cvar_s *gl_keeptjunctions;
extern struct cvar_s *gl_lerp_anim; extern struct cvar_s *gl_lerp_anim;
extern struct cvar_s *gl_driver; extern struct cvar_s *gl_driver;

View file

@ -271,4 +271,9 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
GL_FlushText (); GL_FlushText ();
qfglFlush (); qfglFlush ();
if (gl_finish->int_val) {
GL_EndRendering ();
begun = 0;
}
} }

View file

@ -114,6 +114,7 @@ int gl_max_lights;
cvar_t *gl_doublebright; cvar_t *gl_doublebright;
cvar_t *gl_fb_bmodels; cvar_t *gl_fb_bmodels;
cvar_t *gl_finish;
cvar_t *gl_max_size; cvar_t *gl_max_size;
cvar_t *gl_multitexture; cvar_t *gl_multitexture;
cvar_t *gl_tessellate; cvar_t *gl_tessellate;
@ -258,6 +259,8 @@ GL_Common_Init_Cvars (void)
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE,
gl_fb_bmodels_f, "Toggles fullbright color " gl_fb_bmodels_f, "Toggles fullbright color "
"support for bmodels"); "support for bmodels");
gl_finish = Cvar_Get ("gl_finish", "1", CVAR_ARCHIVE, NULL,
"wait for rendering to finish");
gl_max_size = Cvar_Get ("gl_max_size", "0", CVAR_NONE, gl_max_size_f, gl_max_size = Cvar_Get ("gl_max_size", "0", CVAR_NONE, gl_max_size_f,
"Texture dimension"); "Texture dimension");
gl_multitexture = Cvar_Get ("gl_multitexture", "0", CVAR_ARCHIVE, gl_multitexture = Cvar_Get ("gl_multitexture", "0", CVAR_ARCHIVE,