# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/quake2/no-linux-glfinish.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Quake II's Linux port forces gl_finish 1 in R_Init, after the config and the +set command line, so a glFinish ends every frame's R_RenderView: the CPU waits for the GPU to finish before it builds the next frame and the two never overlap. Probably a work-around for the 3dfx era; with a current driver it only costs frames (CI20 SGX540, q2demo1: 14.4 -> 15.4 fps without it). The cvar keeps its default of 0 and can still be set. if (gl_finish->value) qglFinish (); Signed-off-by: René Rebe --- a/src/gl_rmain.c 2026-11-24 12:15:09.873915148 +0100 +++ b/src/gl_rmain.c 2026-11-24 12:15:09.883791618 +0100 @@ -1247,10 +1247,6 @@ qboolean R_Init( void *hinstance, void * ri.Cvar_Set( "scr_drawall", "0" ); } -#ifdef __linux__ - ri.Cvar_SetValue( "gl_finish", 1 ); -#endif - // MCD has buffering issues if ( gl_config.renderer == GL_RENDERER_MCD ) {