TEST: only call drawscreenfinaltexture once

speeds up gpu perf quite a bit
This commit is contained in:
Alug committed 2024-11-26 22:31:23 +01:00
1 parent 8c3bf47a88
commit eba4601c73
1 file changed
+4 -2
+4 -2
View File
@@ -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