Properly initialized framecountx and re-added the startblit() / endblit() to the CPU thread, fixes renderer switches.
This commit is contained in:
@@ -937,9 +937,11 @@ pc_run(void)
|
|||||||
wchar_t temp[200];
|
wchar_t temp[200];
|
||||||
|
|
||||||
/* Run a block of code. */
|
/* Run a block of code. */
|
||||||
|
startblit();
|
||||||
cpu_exec(cpu_s->rspeed / 100);
|
cpu_exec(cpu_s->rspeed / 100);
|
||||||
mouse_process();
|
mouse_process();
|
||||||
joystick_process();
|
joystick_process();
|
||||||
|
endblit();
|
||||||
|
|
||||||
/* Done with this frame, update statistics. */
|
/* Done with this frame, update statistics. */
|
||||||
framecount++;
|
framecount++;
|
||||||
|
@@ -428,6 +428,7 @@ main_thread(void *param)
|
|||||||
uint32_t old_time, new_time;
|
uint32_t old_time, new_time;
|
||||||
int drawits, frames;
|
int drawits, frames;
|
||||||
|
|
||||||
|
framecountx = 0;
|
||||||
title_update = 1;
|
title_update = 1;
|
||||||
old_time = GetTickCount();
|
old_time = GetTickCount();
|
||||||
drawits = frames = 0;
|
drawits = frames = 0;
|
||||||
|
Reference in New Issue
Block a user