summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-03-03 13:11:45 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-03-03 13:11:45 +0000
commit0cecadd07491002dec27571f8a64efaf6c38dbb2 (patch)
tree3d13da5cf16c87bdd58a55f315ff22544c80f5f3 /apps
parentfdcb5f04ded5cc6793a11f075c364c92b2fb8270 (diff)
Automatic cpu boosting when emulating, when supported
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/rockboy/emu.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/rockboy/emu.c b/apps/plugins/rockboy/emu.c
index b6f2de779a..18a9edb324 100644
--- a/apps/plugins/rockboy/emu.c
+++ b/apps/plugins/rockboy/emu.c
@@ -66,12 +66,13 @@ void emu_step(void)
void emu_run(void)
{
void *timer = sys_timer();
- char meow[500];
int delay;
- int framecount=0;
vid_begin();
lcd_begin();
+#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+ rb->cpu_boost(true);
+#endif
while(shut==0)
{
cpu_emulate(2280);
@@ -96,12 +97,12 @@ void emu_run(void)
while (R_LY > 0) /* wait for next frame */
emu_step();
- framecount++;
- snprintf(meow,499,"%d",framecount);
- rb->lcd_putsxy(0,0,meow);
- rb->lcd_update_rect(0,0,LCD_WIDTH,8);
rb->yield();
}
+#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+ rb->cpu_boost(false);
+#endif
+
}