A game keeps its settings in its .ini (recompiled/<id>/<id>.ini), a section each as below, and the launcher's
Settings show a group for each section (GUI launcher).
Game.ini: help rewritten at startup, most settings hot-reload. A setting given on the command line overrides one
run: its key with a - for each _ (state_slots: --state-slots=5), on every driver; a value it does not take is
said by its key, as the .ini's is. The key as the .ini writes it (--state_slots=5) is the older spelling, still
read and said once a run (Deprecations).
A game's own picks, <id>.picks beside its .ini (recompiled/<id>/<id>.picks), hold what was set for that game
alone, by section as the .ini has them: each setting its menu changes (TV mode, Stats, Volume, the controls' and
controllers' pages, the shortcuts' keys, F4, F6) is kept there, the controls' places and the rest of the game's own
([Game], in-game in settings.txt) in its .ini. A run takes a setting from its own command line, then from the
game's picks, then from the launcher's Settings, which every game gets (the launcher passes them on the command line
with --launcher-picks=1, which puts the game's picks over them), then from the .ini, else its default. The .ini
keeps its own values meanwhile. The log's settings: this game's own, from <path>: line lists the picks, and says the
value a run's own --key=value plays over one. A change to the file is read while the game runs, as the .ini's is; a
key no pick takes is kept in the file and does nothing (below); with no pick left the
file is removed.
In the game's menu a value the picks hold has * after it, and Delete or a controller's Y takes it out: the value
goes back to the launcher's, else the .ini's, at once. Its Settings page sets the rest of these sections for the
game alone (Usage).
From the game's first frame, for 30 seconds, a notification over the game names each setting off its default that
changes how fast the game runs where nothing on the screen shows it, so a choice left from a test is not forgotten:
perf in settings.txt. They are TV mode, tv_refresh_rate, tv_resolution, resolution, render_upscaler,
internal_resolution, fsr_sharpness, vsync, frame_pacing, anisotropy, vulkan_video, apple_video,
vulkan_driver, vertex_input_dynamic_state, vulkan_ban_ignore, astc_textures, texture_shed, texture_half_res,
astc_lines_bc1, texture_sysmem, bc7_queue, astc_compute_queue, astc_quick_mtexels, astc_background, every
vk_ext_*, every Performance setting, gpu_driver, freedreno_env, microphone, mic_noise_reduction, and how the
game's code was made: unit_instructions, as its stamp's made line says it
(Usage). The screen shows the others by itself (stats, showcase, fullscreen, controls, shadows,
upscaler, anti_aliasing, hdr_game), and the [Debug] settings are named at the top of the picture the whole
run. The notification gives their keys alone, a line each: after a gamepad the game's own (its picks, its .ini),
after a globe the launcher's for every game, this run's command line's and how the code was made. A line names as
many as fit it, three lines at most, and the last says how many more there are. A value the runtime gives a kind of
game, its setting's Auto, has a line of its own after an info mark, with its word: emulated_cores_mode's Auto on an
Ounce program, emulated_cores_mode Off, for this kind of game. The log's settings: line says it too, with how to run
it otherwise.
Restart for docked (Auto follows the host's power while the game runs, and hotkey_tv_mode and the game's menu's
TV mode change the mode for the run), tv_refresh_rate, tv_resolution, fullscreen, transition_screen, language, resolution,
anisotropy, hdr_game, hdr_paperwhite, hdr_peak, memory_gb, memory_fit_mode, heap_max_mb, thread_stack_mb, map_limit_mb, map_limit_files,
airplane_mode, ldn, room, pipeline_threads, pipeline_libraries, prepare_shaders,
compress_prepared_shaders, jit_threads, gpu_pstate, vertex_input_dynamic_state, astc_textures, every vk_ext_*, and
the [Debug] settings other than log, auto_stub_ipc, diag and tracy_capture_seconds.
scarletnx --settings prints each setting the launcher's Settings offer, one a line: its section, key, default,
type, range and help, tab-separated. Every setting, the recompiler's too, is described once in
src/nx/runtime/settings.txt, which the build generates the tables and g_settings from.
Made from docs/user/settings.md at 69237645142c. GPL-3.0-or-later.