From 5b6dc0cfa0b367e314bb4746a2f2b84c60978ee9 Mon Sep 17 00:00:00 2001 From: chrg6 Date: Tue, 10 Nov 2026 06:32:37 -0500 Subject: [PATCH] Give the Steam Deck profile four virtual cores, BC3 for ASTC textures and a shorter spin hand-off. On a Steam Deck the settings the player has not set now also default to cores = 4 (the game's six virtual cores share the Deck's four physical ones), astc_bc = 1 and spin_handoff_us = 30. Like the profile's other values they are starting points that no Deck measurement stands behind yet. Pull request #404 by PlayerJV55 (closed on GitHub, no description). Taken: the three profile values, with the profile's comment and nx2navi.ini.example brought up to them. Not taken, each for a reason: - play.sh exporting the same values on a Deck: the game finds the Deck itself and applies the profile; - folding the virtual cores onto the physical ones on every machine with fewer than six cores: that changes the default on Windows PCs too, and nothing was measured; - keeping one unwritten page inside a run of written pages in the shadow copy-in (vk_memory.c): the extra page is copied from guest memory over what a shader may have stored there through the device address table, which never comes back to guest memory, for a gain nobody measured; - the release workflow: it publishes a release, not a draft, and puts an empty file in the translator's place when its build fails. The workflow of pull request #273 builds the same AppImage and refuses to attach a broken one. cfg.c compiles; nothing was run, and there is no Steam Deck here. Co-Authored-By: Claude Fable 5.2 --- nx2navi.ini.example | 5 +++-- runtime/cfg.c | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/nx2navi.ini.example b/nx2navi.ini.example index ad4fffc0..6e90252d 100644 --- a/nx2navi.ini.example +++ b/nx2navi.ini.example @@ -264,8 +264,9 @@ [display] # Device profile: auto (the Steam Deck when this is one), desktop or deck. On a Steam Deck the keys this file does not -# set default to fullscreen = 1, window_size = 1280x800, output_res = 1280x800, render_scale = game, vk_present = fifo -# and fps_limit = 40 (starting points, not measured yet). Read at start. +# set default to fullscreen = 1, window_size = 1280x800, output_res = 1280x800, render_scale = game, vk_present = fifo, +# fps_limit = 40, cores = 4 (the game's six cores share the Deck's four), astc_bc = 1 and spin_handoff_us = 30 +# (starting points, not measured yet). Read at start. # device_profile = auto # Presentation mode: mailbox (default when the driver offers it, vsync otherwise), fifo (vsync) or immediate. The menu's # VSync switch sets mailbox when on and immediate when off. diff --git a/runtime/cfg.c b/runtime/cfg.c index c559580d..3616ade8 100644 --- a/runtime/cfg.c +++ b/runtime/cfg.c @@ -381,11 +381,14 @@ int cfg_load(const char *path) { // The Steam Deck (LCD Jupiter, OLED Galileo; 1280x800, 16:10, 4 Zen 2 cores, RDNA 2 with 8 CUs sharing 16 GB): the game // at the screen's 1280x800 with its own 5/6 scene (the aspect patch gives the camera its 16:10, resolution.c, and the // romfs-patches-1280x800 overlay the HUD's); -// fullscreen and vsync, as gamescope composes Game Mode; 40 fps, which divides 40 Hz (and 120 Hz on the OLED). +// fullscreen and vsync, as gamescope composes Game Mode; 40 fps, which divides 40 Hz (and 120 Hz on the OLED); the +// game's six virtual cores folded onto four, one per physical core (kernel.c cores_enabled); ASTC textures stored as +// BC3, as the automatic choice gives with 16 GB shared between the CPU and the GPU; and a spinning guest thread handed +// off after 30 us instead of 50 (kernel.c), with four cores to share. // Starting points to replace with measured ones (docs/tester-guide.md, Steam Deck). static const struct { const char *key, *value; } DECK[] = { {"FULLSCREEN", "1"}, {"WINDOW_SIZE", "1280x800"}, {"OUTPUT_RES", "1280x800"}, {"RENDER_SCALE", "game"}, - {"VK_PRESENT", "fifo"}, {"FPS_LIMIT", "40"}, + {"VK_PRESENT", "fifo"}, {"FPS_LIMIT", "40"}, {"CORES", "4"}, {"ASTC_BC", "1"}, {"SPIN_HANDOFF_US", "30"}, }; static int profile = -1; // 0 none, 1 Steam Deck