From aeb68516068a9f02360a65ffc95ac51294b64da7 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 6 Dec 2023 17:16:34 +0100 Subject: [PATCH] port: change FPS hard cap to 240 on NTSC, 200 on PAL --- README.md | 2 +- port/include/video.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b61708a4..d54b38e18 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ There are minor graphics- and gameplay-related issues, and possibly occasional c * fixes for a couple original bugs and crashes; * basic mod support, currently enough to load a few custom levels; * slightly expanded memory heap size; -* experimental high framerate support (up to 200 FPS): +* experimental high framerate support (up to 240 FPS): * set `Game.TickRateDivisor` to `0` in `pd.ini` to activate; * in practice the game will have issues running faster than ~165 FPS, so use VSync or `Video.FramerateLimit` to cap it. diff --git a/port/include/video.h b/port/include/video.h index 2ebeda21e..ab7e34575 100644 --- a/port/include/video.h +++ b/port/include/video.h @@ -5,7 +5,11 @@ #include // maximum framerate; if the game runs faster than this, things will break +#if PAL #define VIDEO_MAX_FPS 200 +#else +#define VIDEO_MAX_FPS 240 +#endif s32 videoInit(void); void videoStartFrame(void);