1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

reduce delay for new zoom feature

This commit is contained in:
FunkyFr3sh 2024-07-26 08:24:49 +02:00
parent 3a579e36cc
commit 8b4f94dcd8
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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;