diff options
author | Nebuleon Fumika | 2013-01-07 02:16:34 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-01-07 02:16:34 -0500 |
commit | c01c25febed921976e256d974bf97f948fe16753 (patch) | |
tree | 6cd8703c03ff4d2882ec12c1a79935b43340be46 /source/nds/gui.h | |
parent | 6c5bd7571644baa5693acef24d52c4fb08ed9ce3 (diff) | |
download | snes9x2005-c01c25febed921976e256d974bf97f948fe16753.tar.gz snes9x2005-c01c25febed921976e256d974bf97f948fe16753.tar.bz2 snes9x2005-c01c25febed921976e256d974bf97f948fe16753.zip |
Add support for user-selected and automatic frame skipping. Add support for PAL timings (20 ms per frame).
User-selected frameskip causes slowdowns if the game runs slower than the resulting frame rate, but synchronises correctly if the game runs faster.
Automatic frame skipping is still the default. It now only skips up to 8 frames, but in some games still skips that entire 8 frames. What's needed is an algorithm that averages frame latencies over a few seconds and skips while the latency is LOWER than the average.
Diffstat (limited to 'source/nds/gui.h')
-rw-r--r-- | source/nds/gui.h | 62 |
1 files changed, 55 insertions, 7 deletions
diff --git a/source/nds/gui.h b/source/nds/gui.h index 5a40979..ec0dd1a 100644 --- a/source/nds/gui.h +++ b/source/nds/gui.h @@ -44,16 +44,63 @@ struct _EMU_CONFIG struct _GAME_CONFIG { - u32 clock_speed_number; - u32 frameskip_type; + u32 clock_speed_number; + u32 Reserved0; u32 frameskip_value; - u32 graphic; - u32 enable_audio; - u32 gamepad_config_menu; + u32 graphic; + u32 enable_audio; + u32 Reserved1; u32 backward; u32 backward_time; - u32 reserve[32]; - u32 gamepad_config_map[MAX_GAMEPAD_MAP]; + u32 Reserved2; + u32 Reserved3; + u32 Reserved4; + u32 Reserved5; + u32 Reserved6; + u32 Reserved7; + u32 Reserved8; + u32 Reserved9; + u32 Reserved10; + u32 Reserved11; + u32 Reserved12; + u32 Reserved13; + u32 Reserved14; + u32 Reserved15; + u32 Reserved16; + u32 Reserved17; + u32 Reserved18; + u32 Reserved19; + u32 Reserved20; + u32 Reserved21; + u32 Reserved22; + u32 Reserved23; + u32 Reserved24; + u32 Reserved25; + u32 Reserved26; + u32 Reserved27; + u32 Reserved28; + u32 Reserved29; + u32 Reserved30; + u32 Reserved31; + u32 Reserved32; + + u32 Reserved33; + u32 Reserved34; + u32 Reserved35; + u32 Reserved36; + u32 Reserved37; + u32 Reserved38; + u32 Reserved39; + u32 Reserved40; + u32 Reserved41; + u32 Reserved42; + u32 Reserved43; + u32 Reserved44; + u32 Reserved45; + u32 Reserved46; + u32 Reserved47; + u32 Reserved48; + u32 Reserved49; }; typedef enum @@ -118,6 +165,7 @@ extern GAME_CONFIG game_config; extern void gui_init(u32 lang_id); extern u32 menu(u16 *original_screen); extern void game_disableAudio(); +extern void game_set_frameskip(); extern void set_cpu_clock(u32 num); #ifdef __cplusplus |