1ms
This commit is contained in:
@@ -1714,7 +1714,7 @@ pc_run(void)
|
|||||||
|
|
||||||
/* Run a block of code. */
|
/* Run a block of code. */
|
||||||
startblit();
|
startblit();
|
||||||
cpu_exec((int32_t) cpu_s->rspeed / 100);
|
cpu_exec((int32_t) cpu_s->rspeed / 1000);
|
||||||
ack_pause();
|
ack_pause();
|
||||||
#ifdef USE_GDBSTUB /* avoid a KBC FIFO overflow when CPU emulation is stalled */
|
#ifdef USE_GDBSTUB /* avoid a KBC FIFO overflow when CPU emulation is stalled */
|
||||||
if (gdbstub_step == GDBSTUB_EXEC) {
|
if (gdbstub_step == GDBSTUB_EXEC) {
|
||||||
@@ -1729,7 +1729,7 @@ pc_run(void)
|
|||||||
|
|
||||||
/* Done with this frame, update statistics. */
|
/* Done with this frame, update statistics. */
|
||||||
framecount++;
|
framecount++;
|
||||||
if (++framecountx >= 100) {
|
if (++framecountx >= 1000) {
|
||||||
framecountx = 0;
|
framecountx = 0;
|
||||||
frames = 0;
|
frames = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -448,15 +448,15 @@ main_thread_fn()
|
|||||||
const uint64_t new_time = elapsed_timer.elapsed();
|
const uint64_t new_time = elapsed_timer.elapsed();
|
||||||
#ifdef USE_GDBSTUB
|
#ifdef USE_GDBSTUB
|
||||||
if (gdbstub_next_asap && (drawits <= 0))
|
if (gdbstub_next_asap && (drawits <= 0))
|
||||||
drawits = 10;
|
drawits = 1;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
drawits += static_cast<int>(new_time - old_time);
|
drawits += static_cast<int>(new_time - old_time);
|
||||||
old_time = new_time;
|
old_time = new_time;
|
||||||
if (drawits > 0 && !dopause) {
|
if (drawits > 0 && !dopause) {
|
||||||
/* Yes, so do one frame now. */
|
/* Yes, so do one frame now. */
|
||||||
drawits -= 10;
|
drawits -= 1;
|
||||||
if (drawits > 50)
|
if (drawits > 500)
|
||||||
drawits = 0;
|
drawits = 0;
|
||||||
|
|
||||||
#ifdef USE_INSTRUMENT
|
#ifdef USE_INSTRUMENT
|
||||||
@@ -475,7 +475,7 @@ main_thread_fn()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Every 200 frames we save the machine status. */
|
/* Every 200 frames we save the machine status. */
|
||||||
if (++frames >= 200 && nvr_dosave) {
|
if (++frames >= 2000 && nvr_dosave) {
|
||||||
qt_nvr_save();
|
qt_nvr_save();
|
||||||
nvr_dosave = 0;
|
nvr_dosave = 0;
|
||||||
frames = 0;
|
frames = 0;
|
||||||
@@ -493,7 +493,7 @@ main_thread_fn()
|
|||||||
if (dopause)
|
if (dopause)
|
||||||
ack_pause();
|
ack_pause();
|
||||||
|
|
||||||
plat_delay_ms(1);
|
//plat_delay_ms(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user