From eba4601c73506d697557e6e245f65f308bb04b72 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 26 Nov 2024 22:31:23 +0100 Subject: [PATCH] TEST: only call drawscreenfinaltexture once speeds up gpu perf quite a bit --- src/sdl/ogl_sdl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 120014d39..a3ee438fa 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -283,7 +283,8 @@ void OglSdlFinishUpdate(boolean waitvbl) } #endif - HWR_DrawScreenFinalTexture(sdlw, sdlh); + //HWR_DrawScreenFinalTexture(sdlw, sdlh); + GL_DrawScreenFinalTexture(HWD_SCREENTEXTURE_GENERIC2, sdlw, sdlh); #ifdef USE_FBO_OGL if (UseScreenFBO()) @@ -300,7 +301,8 @@ void OglSdlFinishUpdate(boolean waitvbl) // Sryder: We need to draw the final screen texture again into the other buffer in the original position so that // effects that want to take the old screen can do so after this - HWR_DrawScreenFinalTexture(realwidth, realheight); + //HWR_DrawScreenFinalTexture(realwidth, realheight); + //GL_DrawScreenFinalTexture(HWD_SCREENTEXTURE_GENERIC2, realwidth, realheight); } #endif //HWRENDER