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