Performance

KeyDefaultEffect
fps_limitgameThe pace the game asks for, as on the console: 60 FPS, or 30 for a game made for 30. 0 is unlimited, and 10 to 1000 is that many FPS. A 3DS game takes it too (--fps-limit=N): its clock runs at N/60 of the console's pace (the 3DS shows 60 frames a second), its sound with it; 0 skips every wait, its sound not played. F4 turns it off and on there too
frame_rate0The frame rate a game module asks the game to run at: 0 = the game's own, 1 = 30, 2 = 60 frames a second. Only a game whose module knows how the game paces itself follows it, keeping its logic in real time (Hooks, modules in libraries). Without such a module it does nothing: fps_limit paces the frames, not the game's logic
memory_gb0Memory the game sees. Below 6 it is the console's 3.2 GB, 6 gives 4.8 GB and 8 gives 6.8 GB. Games that run out of memory on 3.2 GB need 6. 12 is an experimental 10 GiB application budget with a 12 GiB heap region for newer games. It needs enough host memory and address space.
memory_fit_mode00 (Auto) tells the game at least the console's memory, and of what memory_gb adds above it no more than the device can still give, measured as the game starts, less what the rest of ScarletNX takes: a device with less than the console has runs as with 1, and one that can give it all tells it all of it. The log says what it measured. 1 (Off) tells it all of memory_gb's. It takes the place of memory_fit, whose 0 was Off (Deprecations)
heap_max_mb0The most heap the game can allocate, in MB. 0 is as much as the memory allows
map_limit_mb0 (iOS 256)The most of the game's RomFS and ExeFS files mapped into memory, in MB: the ExeFS and a romfs.bin at start, a romfs folder's files as the game first reads them. 0 is no limit. A file past it is read from disk when the game asks, which is slower and leaves address space for threads and graphics where a device has little
map_limit_files0 (iOS 2048)The most of those files mapped. 0 is no limit. Each mapped file holds a descriptor, of which a device may give the whole app a few thousand
thread_stack_mb32 (iOS 8)The host stack of each of the game's threads, in MB, which a game's deep calls take. Less leaves address space for more threads where a device has little, and a game that calls very deep may then stop
gpu_pstateautoHolds the GPU's clocks up while the game runs. A frame keeps the GPU half idle (it waits for the frame's commands, then the game waits for it), and a driver that sets the clocks by how busy the GPU is lowers them, which makes every frame slower. auto holds them on a discrete GPU where its driver lets a program do it and on a phone's Adreno, and not on a computer's integrated GPU, which shares its power with the CPU; on holds that one too; off leaves them to the driver. AMD's GPUs on Linux are held at amdgpu's peak stable pstate (AMDGPU_CTX_OP_SET_STABLE_PSTATE, on a context of ScarletNX's own: no root needed), only from amdgpu's level auto (power_dpm_force_performance_level): a level set on the PC (LACT, CoreCtrl, by hand) is left as it is, as the kernel would put auto back over it when the game ends. The kernel gives the level back when the game ends, a crash or a kill too. NVIDIA's driver is asked for its boost on each swapchain (VK_NV_low_latency2's lowLatencyBoost, its low latency mode off), which needs presents with ids (VK_KHR_present_id) and ends with the swapchain. An Adreno under kgsl (Android) is held at its top power level while frames are presented, as the constraint of a context of ScarletNX's own (KGSL_PROP_PWR_CONSTRAINT), which kgsl drops with the context when the game ends, a crash or a kill too. The log says which, with the render node and the level before and after, or why none is held and the error the kernel gave; any value but auto, on and off stops the game, saying so (GPU clocks)
pipeline_threads0Threads that make the GPU's new pipelines while the game goes on, and those of earlier runs before it starts with prepare_shaders=2. 0 uses all the computer's threads but two, two to twelve. 1 to 32 is that many. Past the first two they run at the system's low priority (nice +10 on Linux and Android, the utility QoS class on macOS and iOS, below normal on Windows, the idle class where FreeBSD allows it), so more make a first run's new pipelines sooner and the game's own threads still go first
async_pipelines01 skips what a new shader draws while its pipeline is made, where the game would otherwise pause until it is ready. The game no longer stops where a new shader first appears, and the things that shader draws show up a few frames later. Only into what the game draws over every frame (drawn 8 frames in a row and cleared whole in this one); into anything else, such as a menu's layer drawn once and kept, the draw waits for its pipeline. 0 waits for every pipeline. A 3DS game takes it too, and pipeline_threads (the launcher passes them to scarletnx-3ds as --async-pipelines=1 and --pipeline-threads=N)
pipeline_libraries11 makes a new pipeline from parts of its shaders that compile once, where the GPU has graphics pipeline libraries, and makes an optimized one in the background. A new state of a known shader then costs a link of a few milliseconds, not a compile. 0 compiles each pipeline whole
prepare_shaders2Prepares the shaders the game ships in its files and executables ahead of time, so the game's draws needn't make them and it stutters less. They are prepared again after ScarletNX, the GPU or its driver is updated. 0 (Off) makes each shader only when the game first draws with it. 1 (While playing) prepares them in the background, and the game uses them once all are ready. 2 (Before starting) prepares them behind a loading screen in the launcher theme's look, which also waits for the shader cache of earlier sessions, so an opening movie doesn't stutter. A key that types, an arrow or the keypad, a gamepad button other than Home, or a tap starts the game at once, and the rest is prepared while it runs. Esc twice quits (on Android, back opens the menu, whose Exit quits). F2 or a gamepad's Home opens the menu, and F11 or Alt+Enter switches fullscreen, without starting the game. The screen shows only when the wait passes a quarter second, its words are in English, and a timed run (--seconds) starts its clock after it
compress_prepared_shaders11 packs each shader prepare_shaders makes (shader_cache/<id>.<driver>.vkshipped) with zstd on its own: about a quarter of the space, about 50 microseconds more for each as it is prepared, and 15 the first time a draw uses it. 0 saves them as they are made. What is packed already is read either way
nce1On an AArch64 Linux host or Android 10 and later on arm64, 1 runs the game's 64-bit code natively on the host's CPU (native code execution), with the words that cannot run as they are patched: SVCs, the TLS registers, the counter registers, and the exclusives made ordered, as Eden patches them. The recompile then makes no code ahead of time. 0 recompiles the code. Other hosts, 32-bit games and, on Android, games of the 36-bit address space always recompile. The next recompile takes it (NCE)
jit_threads0Threads compiling the game code the recompiler missed, which a thread waits for when it reaches it. 0 uses every CPU the game may run on but two, at most 4; 1 to 16 is that many. They run below the game's threads; one more thread, at the game's priority, compiles only what a game thread is waiting for
jit_region_instructions0The most instructions one branch graph of missed code may hold when the JIT compiles it, so a huge function cannot stall the game for seconds; branches out of it resume through the dispatch table. 0 is up to 4096, a larger graph cut into regions of 64
jit_live_budget0The instructions beyond the missed code itself (its callees) that a miss the game waits on discovers. The background queue keeps its larger budget. 0 is 64

Made from docs/user/settings.md at 69237645142c. GPL-3.0-or-later.