diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-03 13:11:45 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-03 13:11:45 +0000 |
commit | 0cecadd07491002dec27571f8a64efaf6c38dbb2 (patch) | |
tree | 3d13da5cf16c87bdd58a55f315ff22544c80f5f3 /apps/plugins | |
parent | fdcb5f04ded5cc6793a11f075c364c92b2fb8270 (diff) | |
download | rockbox-0cecadd07491002dec27571f8a64efaf6c38dbb2.tar.gz rockbox-0cecadd07491002dec27571f8a64efaf6c38dbb2.zip |
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/plugins')
-rw-r--r-- | apps/plugins/rockboy/emu.c | 13 |
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) | |||
66 | void emu_run(void) | 66 | void emu_run(void) |
67 | { | 67 | { |
68 | void *timer = sys_timer(); | 68 | void *timer = sys_timer(); |
69 | char meow[500]; | ||
70 | int delay; | 69 | int delay; |
71 | int framecount=0; | ||
72 | 70 | ||
73 | vid_begin(); | 71 | vid_begin(); |
74 | lcd_begin(); | 72 | lcd_begin(); |
73 | #if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) | ||
74 | rb->cpu_boost(true); | ||
75 | #endif | ||
75 | while(shut==0) | 76 | while(shut==0) |
76 | { | 77 | { |
77 | cpu_emulate(2280); | 78 | cpu_emulate(2280); |
@@ -96,12 +97,12 @@ void emu_run(void) | |||
96 | 97 | ||
97 | while (R_LY > 0) /* wait for next frame */ | 98 | while (R_LY > 0) /* wait for next frame */ |
98 | emu_step(); | 99 | emu_step(); |
99 | framecount++; | ||
100 | snprintf(meow,499,"%d",framecount); | ||
101 | rb->lcd_putsxy(0,0,meow); | ||
102 | rb->lcd_update_rect(0,0,LCD_WIDTH,8); | ||
103 | rb->yield(); | 100 | rb->yield(); |
104 | } | 101 | } |
102 | #if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) | ||
103 | rb->cpu_boost(false); | ||
104 | #endif | ||
105 | |||
105 | } | 106 | } |
106 | 107 | ||
107 | 108 | ||