{
// tell driver to commit it's partially full geometry queue to the rendering queue
// (this doesn't wait for the commands themselves to complete)
- qglFlush();
+ if (gl_finish.integer)
+ qglFlush();
}
else
{
#define GL_MAX_ELEMENTS_INDICES 0x80E9
#endif
-extern cvar_t gl_combine;
extern int gl_textureshader;
#ifndef GL_TEXTURE_SHADER_NV
extern cvar_t vid_bitsperpixel;
extern cvar_t vid_mouse;
+extern cvar_t gl_combine;
+extern cvar_t gl_finish;
+
extern cvar_t v_gamma;
extern cvar_t v_contrast;
extern cvar_t v_brightness;
int usemouse;
if (r_render.integer)
{
- qglFinish();
+ if (r_speeds.integer || gl_finish.integer)
+ qglFinish();
qglXSwapBuffers(vidx11_display, win);
}
Uint8 appstate;
int vid_usemouse;
- qglFinish();
+ if (r_speeds.integer || gl_finish.integer)
+ qglFinish();
SDL_GL_SwapBuffers();
//react on appstate changes
cvar_t vid_mouse = {CVAR_SAVE, "vid_mouse", "1"};
cvar_t gl_combine = {CVAR_SAVE, "gl_combine", "1"};
+cvar_t gl_finish = {0, "gl_finish", "0"};
cvar_t in_pitch_min = {0, "in_pitch_min", "-70"};
cvar_t in_pitch_max = {0, "in_pitch_max", "80"};
Cvar_RegisterVariable(&vid_bitsperpixel);
Cvar_RegisterVariable(&vid_mouse);
Cvar_RegisterVariable(&gl_combine);
+ Cvar_RegisterVariable(&gl_finish);
Cvar_RegisterVariable(&in_pitch_min);
Cvar_RegisterVariable(&in_pitch_max);
Cvar_RegisterVariable(&m_filter);
int vid_usemouse;
if (r_render.integer && !scr_skipupdate)
{
- qglFinish();
+ if (r_speeds.integer || gl_finish.integer)
+ qglFinish();
hdc = GetDC(mainwindow);
SwapBuffers(hdc);
ReleaseDC(mainwindow, hdc);