From c01c25febed921976e256d974bf97f948fe16753 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Mon, 7 Jan 2013 02:16:34 -0500 Subject: 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. --- source/snes9x.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/snes9x.h') 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" -- cgit v1.2.3