From 8b4f94dcd8c83a2ed12b3d9d817171e94c4c53f3 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 26 Jul 2024 08:24:49 +0200 Subject: [PATCH] reduce delay for new zoom feature --- src/render_d3d9.c | 2 +- src/render_ogl.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render_d3d9.c b/src/render_d3d9.c index c8e911e..9109f96 100644 --- a/src/render_d3d9.c +++ b/src/render_d3d9.c @@ -540,7 +540,7 @@ static BOOL d3d9_update_vertices(BOOL upscale_hack, BOOL stretch) DWORD WINAPI d3d9_render_main(void) { - Sleep(250); + //Sleep(250); fpsl_init(); diff --git a/src/render_ogl.c b/src/render_ogl.c index a348ed6..d1c7df2 100644 --- a/src/render_ogl.c +++ b/src/render_ogl.c @@ -52,7 +52,7 @@ BOOL ogl_create() DWORD WINAPI ogl_render_main(void) { - Sleep(250); + //Sleep(250); g_ogl.got_error = g_ogl.use_opengl = FALSE; GLenum err = GL_NO_ERROR; BOOL made_current = FALSE; @@ -91,8 +91,8 @@ DWORD WINAPI ogl_render_main(void) GL_CHECK(ogl_init_shader1_program()); GL_CHECK(ogl_init_shader2_program()); - GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_texture_upload_test()); - GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_shader_test()); + //GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_texture_upload_test()); + //GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_shader_test()); g_ogl.got_error = g_ogl.got_error || (err = glGetError()) != GL_NO_ERROR; g_ogl.use_opengl = (g_ogl.main_program || g_ddraw.bpp == 16 || g_ddraw.bpp == 32) && !g_ogl.got_error;