From 9a69d137feb8a905a73392b9beccfde92de41795 Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Wed, 4 Jan 2023 12:17:45 -0500 Subject: [PATCH] fix PS framerate issues --- src/minarch/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/minarch/main.c b/src/minarch/main.c index 8139c1e..155a52c 100644 --- a/src/minarch/main.c +++ b/src/minarch/main.c @@ -739,7 +739,7 @@ static void video_refresh_callback(const void *data, unsigned width, unsigned he GFX_clearAll(); } scale(data,width,height,pitch,screen->pixels); - // GFX_flip(screen); + GFX_flip(screen); } static void audio_sample_callback(int16_t left, int16_t right) { @@ -752,7 +752,7 @@ static size_t audio_sample_batch_callback(const int16_t *data, size_t frames) { static uint32_t buttons = 0; static void input_poll_callback(void) { PAD_poll(); - + // TODO: support remapping buttons = 0; @@ -926,10 +926,10 @@ int main(int argc , char* argv[]) { // else if (PAD_justPressed(BTN_R1)) State_write(); core.run(); - unsigned long frame_duration = SDL_GetTicks() - frame_start; - #define TARGET_FRAME_DURATION 15 - if (frame_duration