Initial commit of dynamic recompiler.

Various CPU changes to support dynamic recompiler.
This commit is contained in:
TomW 2014-11-05 21:24:16 +00:00
commit 4676daade4
52 changed files with 3740 additions and 1139 deletions

View file

@ -133,6 +133,8 @@ void leave_fullscreen()
leave_fullscreen_flag = 1;
}
uint64_t main_time;
void mainthread(LPVOID param)
{
int t = 0;
@ -155,6 +157,8 @@ void mainthread(LPVOID param)
old_time = new_time;
if (drawits > 0 && !pause)
{
uint64_t start_time = timer_read();
uint64_t end_time;
drawits-=10; if (drawits>50) drawits=0;
runpc();
frames++;
@ -164,6 +168,8 @@ void mainthread(LPVOID param)
nvr_dosave = 0;
savenvr();
}
end_time = timer_read();
main_time += end_time - start_time;
}
else
Sleep(1);