1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

uncapped FPS: fix viewport chopiness and reset after park load

This commit is contained in:
IntelOrca
2015-07-04 23:51:23 +01:00
parent 69a2d4a775
commit f0bba54e79
6 changed files with 66 additions and 9 deletions

View File

@@ -156,6 +156,13 @@ void window_dispatch_update_all()
RCT2_CALLPROC_EBPSAFE(0x006EE411); // handle_text_input
}
void window_update_all_viewports()
{
for (rct_window *w = g_window_list; w < RCT2_NEW_WINDOW; w++)
if (w->viewport != NULL)
viewport_update_position(w);
}
/**
*
* rct2: 0x006E77A1
@@ -169,10 +176,7 @@ void window_update_all()
return;
gfx_draw_all_dirty_blocks();
for (w = g_window_list; w < RCT2_NEW_WINDOW; w++)
if (w->viewport != NULL)
viewport_update_position(w);
window_update_all_viewports();
// 1000 tick update
RCT2_GLOBAL(0x009DEB7C, sint16) += RCT2_GLOBAL(0x009DE588, sint16);