From a386ef64f6376b3ef8434a6cdf456495287fcbca Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Mon, 31 Mar 2025 20:31:05 +0200 Subject: currently 90% working --- base/state.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'base/state.c') diff --git a/base/state.c b/base/state.c index f883d64..1e9d95b 100644 --- a/base/state.c +++ b/base/state.c @@ -1,7 +1,7 @@ -#define BUFFER_WIDTH 2048 -#define BUFFER_HEIGHT 1024 -#define FPS 50 +#define BUFFER_WIDTH 256 // render buffer +#define BUFFER_HEIGHT 240 // render buffer +#define FPS 60.1 #ifdef _WIN32 #define SLEEP_MARGIN_NS 330000 // 0.33ms (Windows timing functionality is utter garbage) #else @@ -11,8 +11,8 @@ #define ONE_SECOND_NS 1000000000 #define FRAMETIME (ONE_SECOND_NS / FPS) -#define SCREEN_WIDTH 360 -#define SCREEN_HEIGHT 270 +#define SCREEN_WIDTH 256 // screen size +#define SCREEN_HEIGHT 240 // screen size uint32_t buffer[BUFFER_WIDTH * BUFFER_HEIGHT] __attribute__((section(".bss"), aligned(4096))); uint32_t display_buffer[SCREEN_WIDTH * SCREEN_HEIGHT] __attribute__((section(".bss"), aligned(4096))); @@ -85,6 +85,7 @@ static struct remake_callbacks *current_part = 0; static void render_callback(); static void audio_callback(int16_t *audio_buffer, size_t frames); static void init_callback(); +static void shutdown_callback(); #ifndef PROFILER #define PROFILE_NAMED(name) -- cgit v1.2.3