bugfixes in cd/Memory.s, poll loop detection

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@77 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-03-24 18:25:17 +00:00
parent 00bd648e63
commit 7a1f6e45c9
6 changed files with 134 additions and 35 deletions

View file

@ -790,6 +790,9 @@ static void emu_msg_cb(const char *msg)
}
gettimeofday(&noticeMsgTime, 0);
noticeMsgTime.tv_sec -= 2;
/* assumption: emu_msg_cb gets called only when something slow is about to happen */
reset_timing = 1;
}
static void emu_state_cb(const char *str)
@ -1168,7 +1171,9 @@ void emu_Loop(void)
if (frames_shown > frames_done) frames_shown = frames_done;
}
}
#if 0
sprintf(fpsbuff, "%05i", Pico.m.frame_count);
#endif
lim_time = (frames_done+1) * target_frametime;
if(currentConfig.Frameskip >= 0) { // frameskip enabled
for(i = 0; i < currentConfig.Frameskip; i++) {