To change these options, open `xenia.config.toml` in a text editor like [Notepad++](https://notepad-plus-plus.org/download/). It will be in `Documents\Xenia` by default. If `portable.txt` is present it will be in the same directory as xenia.exe.
libav_verbose = false # Verbose libav output (debug and above)
mute = false # Mutes all audio output.
[CPU]
break_condition_gpr = -1 # GPR compared to
break_condition_op = 'eq' # comparison operator
break_condition_truncate = true # truncate value to 32-bits
break_condition_value = 0 # value compared against
break_on_debugbreak = true # int3 on JITed __debugbreak requests.
break_on_instruction = 0 # int3 before the given guest address is executed.
break_on_start = false # Break into the debugger on startup.
cpu = 'any' # CPU backend [any, x64].
debug_symbol_loader = false # Enable dbghelp debug logging and validation.
debugprint_trap_log = false # Log debugprint traps to the active debugger
disable_global_lock = false # Disables global lock usage in guest code. Does not affect host code.
disassemble_functions = false # Disassemble functions during generation.
emit_source_annotations = false # Add extra movs and nops to make disassembly easier to read.
ignore_undefined_externs = true # Don't exit when an undefined extern is called.
inline_mmio_access = true # Inline constant MMIO loads and stores.
load_module_map = '' # Loads a .map for symbol names and to diff with the generated symbol database.
store_all_context_values = false # Don't strip dead context stores to aid in debugging.
trace_function_coverage = false # Generate tracing for function instruction coverage statistics.
trace_function_data = false # Generate tracing for function result data.
trace_function_data_path = '' # File to write trace data to.
trace_function_references = false # Generate tracing for function address references.
trace_functions = false # Generate tracing for function statistics.
use_haswell_instructions = true # Uses the AVX2/FMA/etc instructions on Haswell processors when available.
validate_hir = false # Perform validation checks on the HIR during compilation.
[Content]
license_mask = 0 # Set license mask for activated content: 0 - disable all licenses / 1 - enable the first license - usually the full version license in Xbox Live Arcade games / -1 or 0xFFFFFFFF - enable all possible licenses.
[D3D12]
d3d12_16bit_rtv_full_range = true # Use full -32...32 range for RG16 and RGBA16 render targets (at the expense of blending correctness) without ROV.
d3d12_adapter = -1 # Index of the DXGI adapter to use. -1 for any physical adapter, -2 for WARP software rendering.
d3d12_convert_quads_to_triangles = false # Convert quad lists to triangle lists on the CPU instead of using a geometry shader. Not recommended for playing, for debugging primarily (because PIX fails to display vertices when a geometry shader is used).
d3d12_dxbc_disasm = false # Disassemble DXBC shaders after generation.
d3d12_edram_rov = true # Use rasterizer-ordered views for render target emulation where available.
d3d12_half_pixel_offset = true # Enable half-pixel vertex and VPOS offset.
d3d12_pipeline_creation_threads = -1 # Number of threads used for graphics pipeline state creation. -1 to calculate automatically (75% of logical CPU cores), 1-16 to specify the number of threads explicitly, 0 to disable multithreaded pipeline state creation.
d3d12_random_clear_color = false # Randomize presentation back buffer clear color.
d3d12_readback_memexport = false # Read data written by memory export in shaders on the CPU. This may be needed in some games (but many only access exported data on the GPU, and this flag isn't needed to handle such behavior), but causes mid-frame synchronization, so it has a huge performance impact.
d3d12_readback_resolve = false # Read render-to-texture results on the CPU. This may be needed in some games, for instance, for screenshots in saved games, but causes mid-frame synchronization, so it has a huge performance impact.
d3d12_resolution_scale = 1 # Scale of rendering width and height (currently only 1 and 2 are available).
d3d12_resolution_scale_resolve_edge_clamp = true # When using resolution scale, apply the hack that duplicates the right/lower subpixel in the left and top sides of render target resolve areas to eliminate the gap caused by half-pixel offset (this is necessary for certain games like GTA IV to work).
d3d12_ssaa_custom_sample_positions = false # Enable custom SSAA sample positions for the RTV/DSV rendering path where available instead of centers (experimental, not very high-quality).
d3d12_tessellation_adaptive = false # Allow games to use adaptive tessellation - may be disabled if the game has issues with memexport, the maximum factor will be used in this case. Temporarily disabled by default since there are visible cracks currently in Halo 3.
d3d12_tessellation_wireframe = false # Display tessellated surfaces as wireframe for debugging.
d3d12_texture_cache_limit_hard = 768 # Maximum host texture memory usage (in megabytes) above which textures will be destroyed as soon as possible. If using 2x resolution scale, 1.25x of this is used.
d3d12_texture_cache_limit_soft = 384 # Maximum host texture memory usage (in megabytes) above which old textures will be destroyed (lifetime configured with d3d12_texture_cache_limit_soft_lifetime). If using 2x resolution scale, 1.25x of this is used.
d3d12_texture_cache_limit_soft_lifetime = 30 # Seconds a texture should be unused to be considered old enough to be deleted if texture memory usage exceeds d3d12_texture_cache_limit_soft.
d3d12_tiled_shared_memory = true # Enable tiled resources for shared memory emulation. Disabling them greatly increases video memory usage - a 512 MB buffer is created - but allows graphics debuggers that don't support tiled resources to work.
dxbc_source_map = false # Disassemble Xenos instructions as comments in the resulting DXBC for debugging.
dxbc_switch = true # Use switch rather than if for flow control. Turning this off or on may improve stability, though this heavily depends on the driver - on AMD, it's recommended to have this set to true, as Halo 3 appears to crash when if is used for flow control (possibly the shader compiler tries to flatten them). On Intel HD Graphics, this is ignored because of a crash with the switch instruction.
[GPU]
dump_shaders = '' # Path to write GPU shaders to as they are compiled.