From 9af8b345ab9dd60e51ceeedc698be61a8b228763 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Mon, 2 Mar 2026 13:54:17 +0000 Subject: [PATCH 1/2] Split raycaster picosystem resolution from pico reduced sprites --- raycaster/raycaster.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/raycaster/raycaster.hpp b/raycaster/raycaster.hpp index 68bdb5b..b8d1c01 100644 --- a/raycaster/raycaster.hpp +++ b/raycaster/raycaster.hpp @@ -8,20 +8,24 @@ constexpr float M_PI_H = 1.5707963267948966f; constexpr float EPSILON = 0.00000001f; -#ifdef PICO_BOARD +#ifdef PICO_BUILD +constexpr uint16_t NUM_SPRITES = 1000; +constexpr uint16_t NUM_STARS = 50; +#else +constexpr uint16_t NUM_SPRITES = 5000; +constexpr uint16_t NUM_STARS = 100; +#endif + +#ifdef BLIT_BOARD_PIMORONI_PICOSYSTEM constexpr uint16_t OFFSET_TOP = 30; constexpr uint16_t SCREEN_WIDTH = 120; constexpr uint16_t SCREEN_HEIGHT = 120; -constexpr uint16_t NUM_SPRITES = 1000; -constexpr uint16_t NUM_STARS = 50; #define AMBIENT_OCCLUSION // Paints into a mask with a blur pass, disable for a slight performance boost //#define SHOW_FPS // Frame time is pretty high on PicoSystem, so just turn off the FPS meter :D #else constexpr uint16_t OFFSET_TOP = 0; constexpr uint16_t SCREEN_WIDTH = 160; constexpr uint16_t SCREEN_HEIGHT = 120; -constexpr uint16_t NUM_SPRITES = 5000; -constexpr uint16_t NUM_STARS = 100; #define AMBIENT_OCCLUSION //#define SHOW_FPS #endif From b8bf309e4be1e933c85e8925cefabd8fad4257f4 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Tue, 3 Mar 2026 16:53:25 +0000 Subject: [PATCH 2/2] square screen for presto too --- raycaster/raycaster.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycaster/raycaster.hpp b/raycaster/raycaster.hpp index b8d1c01..6e3886a 100644 --- a/raycaster/raycaster.hpp +++ b/raycaster/raycaster.hpp @@ -16,7 +16,7 @@ constexpr uint16_t NUM_SPRITES = 5000; constexpr uint16_t NUM_STARS = 100; #endif -#ifdef BLIT_BOARD_PIMORONI_PICOSYSTEM +#if defined(BLIT_BOARD_PIMORONI_PICOSYSTEM) || defined(BLIT_BOARD_PIMORONI_PRESTO) constexpr uint16_t OFFSET_TOP = 30; constexpr uint16_t SCREEN_WIDTH = 120; constexpr uint16_t SCREEN_HEIGHT = 120;