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/nds/message.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'source/nds/message.h') diff --git a/source/nds/message.h b/source/nds/message.h index ee89acd..09332bc 100644 --- a/source/nds/message.h +++ b/source/nds/message.h @@ -30,8 +30,7 @@ enum MSG MSG_MAIN_MENU_EXIT, FMT_VIDEO_ASPECT_RATIO, FMT_VIDEO_FAST_FORWARD, - FMT_VIDEO_FRAME_SKIP_AUTOMATIC, - FMT_VIDEO_FRAME_SKIP_MANUAL, + FMT_VIDEO_FRAME_SKIPPING, FMT_AUDIO_SOUND, MSG_SAVED_STATE_CREATE, FMT_SAVED_STATE_LOAD, @@ -56,8 +55,18 @@ enum MSG MSG_VIDEO_ASPECT_RATIO_3, MSG_VIDEO_ASPECT_RATIO_4, - MSG_FRAMESKIP_0, // currently unused - MSG_FRAMESKIP_1, // currently unused + MSG_VIDEO_FRAME_SKIPPING_AUTOMATIC, + MSG_VIDEO_FRAME_SKIPPING_0, + MSG_VIDEO_FRAME_SKIPPING_1, + MSG_VIDEO_FRAME_SKIPPING_2, + MSG_VIDEO_FRAME_SKIPPING_3, + MSG_VIDEO_FRAME_SKIPPING_4, + MSG_VIDEO_FRAME_SKIPPING_5, + MSG_VIDEO_FRAME_SKIPPING_6, + MSG_VIDEO_FRAME_SKIPPING_7, + MSG_VIDEO_FRAME_SKIPPING_8, + MSG_VIDEO_FRAME_SKIPPING_9, + MSG_VIDEO_FRAME_SKIPPING_10, MSG_GENERAL_OFF, MSG_GENERAL_ON, -- cgit v1.2.3