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/snes9x.h | |
parent | 6c5bd7571644baa5693acef24d52c4fb08ed9ce3 (diff) | |
download | snesemu-c01c25febed921976e256d974bf97f948fe16753.tar.gz snesemu-c01c25febed921976e256d974bf97f948fe16753.tar.bz2 snesemu-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/snes9x.h')
-rw-r--r-- | source/snes9x.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/snes9x.h b/source/snes9x.h index e9ed479..e9e29b8 100644 --- a/source/snes9x.h +++ b/source/snes9x.h @@ -97,9 +97,13 @@ #include "fs_api.h" #include "ds2_malloc.h" +#ifdef __cplusplus extern "C" { +#endif extern int cprintf(const char *fmt, ...); +#ifdef __cplusplus } +#endif #ifdef __WIN32__ #include "..\wsnes9x.h" |