Debug (4)

KeyDefaultEffect
uma_copies0Where vk_memory reads guest memory in place, whether vertices, indices and constant buffers are read there too. 0 (Auto) copies them on amdgpu's drivers (RADV, AMDVLK, AMD's on Linux), where each import costs every submission, and on a discrete GPU that imports host memory, whose reads cross the bus: there read-only storage (a draw's and a dispatch's) is copied too. It reads them in place on a discrete GPU through dma-bufs, and elsewhere. 1 reads them in place, 2 copies them, and read-only storage too on a discrete GPU. What the GPU writes, and a range a write in place is pending over, stay in place either way (GPU ownership)
vram_by_format01 logs every 600 presents what the textures and render targets take by what their images hold (ASTC decoded or encoded, BC, other conversions, uncompressed, render targets), in the GPU's memory and in system memory; 0 logs that line only when an allocation finds no memory (at most every 600 presents) and when the GPU is lost (Profiling)
vk_buffer_stats01 logs what the renderer copies between guest memory and its buffers
vk_draw_runs01 logs every 600 presents how many direct draws came in runs that one Vulkan call could draw: with nothing recorded between two draws, with the index buffer's offset alone, and with descriptors, push constants and vertex buffer offsets too. Counted on the recording thread's ring (vk_record=1)
vk_sparse_share11 lets the blocks of a sparse texture that show the same memory of the game share one piece of GPU memory, where the GPU can bind memory to more than one place of an image. 0 gives each block its own
vk_stage_memory0Which host memory holds the buffers that the CPU fills each frame for the GPU to read. 1 is memory for writes in order, which a driver can map write-combined, where small copies are slow. 2 is cached memory, where the GPU has such a type. 0 is 2 on Intel's Mesa driver, else 1
vk_buffer_pages11 keeps the guest memory that draws read by page, in sparse buffers, or in slabs on a GPU with no sparse buffers. Ranges that overlap share their bytes, and a range that did not change is not copied again. 2 also keeps what a draw writes to guest memory there, on the GPU, until the game's CPU code touches it. It needs working write tracking. In slabs it only reads, so 2 acts as 1 there
vk_stream_ring11 sends the bytes that a copy or a draw recorded at once reads (texture uploads, the pages of vk_buffer_pages, the copies of the buffer cache) through chunks that are free again when that work is done. 0 sends them through the frame's rings, which come back when the frame's slot does
vk_buffer_slabs01 makes vk_buffer_pages keep its bytes in slabs, buffers with all their memory, on every GPU. That is its way on a GPU with no sparse buffers, and the value is for testing. 0 uses slabs only on such a GPU
nvn_storage_order2How NVN draws that write storage buffers are ordered. 2 lets draws whose writable views cover the same buffer overlap, as NVN does until the game's own barrier, and puts the Vulkan barrier that barrier asks for at the next buffer use that depends on it. 1 puts it where the game's barrier is. 0 orders each such draw after the ones before it, as Maxwell draws are, to compare (NVN storage ordering)
vk_descriptors_mode33, Automatic, is 2 on a GPU that shares the system's memory (an integrated one, a phone's) and 0 on one with memory of its own, where heaps would write each draw's descriptors on the GPU thread and sets let the recording thread write them. 2: graphics descriptors in heaps where the device has them, else buffers, else sets, and a heap draw whose resource cannot be encoded uses buffers or sets. 1 uses descriptor buffers where supported, else sets. Heap encodings, index tables and buffer descriptors stay unchanged until their frame retires. Compute keeps its own pools. With buffers or heaps in use, the guest fragment barriers that target/buffer tracking orders are skipped. 0 uses descriptor sets, where a fragment barrier ends the render pass only after storage writes or reads that are still pending, or after guest memory used in place. See descriptor measurements
vk_cb_address11: with descriptor heaps, a constant buffer that a shader reads only at constant offsets is mapped by its device address, and its draws write no descriptor for it. A buffer the shader reads at an offset from a register keeps its descriptor, whose range bounds the read. 0 gives every constant buffer a descriptor
vk_cb_windows2How the vertex and fragment programs' constant buffers are bound. 2, Automatic: as 64 KiB windows of the staging ring with their offsets in push constants, where the GPU takes 224 bytes of push constants and uniform ranges of 64 KiB, with descriptor sets, buffers or heaps alike, but not on lavapipe, whose linear rasterizer smashes its stack with them. 1 takes windows on lavapipe too, which needs Mesa's LP_PERF=no_rast_linear (a test runs it so); a GPU that can't take them binds them one by one and says why. 0 binds each constant buffer one by one
vk_cb_window_epochs01 gives each draw thread's constant buffer windows of the staging ring one base, which moves for all of them at once, so a draw's dynamic offsets change less often. A kept copy below the base is copied again. The texture words keep a window of their own
vk_dynamic_cbufs11: with descriptor sets (not descriptor buffers or heaps), the vertex and fragment programs' constant buffers that move most are dynamic uniform buffers. Their offsets go with the bind of the set, not in it, so a draw whose constant buffers only moved keeps its set. The device's limit on dynamic uniform buffers caps how many. The game's moves of each constant buffer are kept in its shader cache when it closes (<game>.vkcbmoves), and the next start chooses from them. 0 binds every constant buffer as a plain uniform buffer
vk_copy_indirect11 makes the copies of GPU-owned results into one buffer with one command, from a list the GPU reads, where the device has VK_KHR_copy_memory_indirect and device addresses. 0 uses one copy command each
vk_inplace_loads11 makes a block linear texture load read the bytes that GPU results hold where they are, where the device has device addresses, and the CPU's bytes from staging. 0 copies the results' bytes into staging first
vk_record10 records Vulkan commands on the GPU thread instead of a thread of their own
vk_mesh_path0How a mesh draw with a task program runs, where the device has VK_EXT_mesh_shader and no ban holds. 0, Auto: the task program runs as a compute dispatch that writes its payload into a buffer, and the draw has no task stage, which removes the task+mesh gang submission that faulted NVIDIA's driver and hangs RADV on RDNA4 (Driver quirks). 1, Native, submits the two stages together, as the console's hardware runs them. 2, Compute, is what Auto takes. A direct and an indirect draw both take it; a device that binds graphics descriptors in heaps keeps the native path, because a heap's bind is the graphics pipeline's
gpu_split21 sets up draws on a renderer thread of their own, while the GPU thread reads the game's commands. 0 does both on the GPU thread. 2 (auto) runs each now and then for a moment and keeps the one that measures faster
draw_prep01 resolves the next draw's kept state (shaders, targets, textures, pipeline) on a thread of its own while the renderer thread records the draw before it. Needs the renderer thread, which the runtime uses where it measures faster. A draw whose resolve needs more is resolved as before. 2 (auto) measures the renderer thread's time a present with and without it now and then, and keeps the faster
draw_batches01 sets up the draws that follow a draw on a worker thread, as a batch, while the renderer thread waits. A step towards parallel batches: it gains nothing yet. 2 splits a long run of draws in two: the renderer thread draws the first half and the worker the second half at the same time. In one game's busiest scene, it ran about 6% faster than 0
draw_timing01 times the steps of each draw on the renderer thread, for the log's lines of draw phases and a draw record's steps, and counts the batch probe. It cost 3.6% of the renderer thread in one game's busiest scene
compute10 skips every compute shader dispatch
hmma_f1601 sums an SM86 HMMA's products in half floats, two a packed OpFma, where the console's tensor core keeps the sum in f32 and an f32 emulation needs two instructions for the same pair: about 2 and a half times the frames a second on a device whose driver offers no matrix unit, and a result is then up to 0.4% of its products' size off (more than that of itself where they cancel), a product or partial sum past 65504 an infinity. 0 is the f32 sum. A device with the matrix unit (VK_KHR_cooperative_matrix) uses it in compute; one with the mixed dot product (VK_VALVE_shader_mixed_float_dot_product) or without shaderFloat16 keeps the f32 sum, and the log says so
hmma_mode0How an SM86 HMMA runs where the device's driver offers no matrix unit (VK_KHR_cooperative_matrix). The fastest way differs by GPU and driver: the HMMA bench ran A and B through shared memory 35 times faster than the gather on an Adreno 610 (Turnip) and 2.2 times slower on an RX 6700 XT, and A-stationary 5.6 times faster than the gather on a GT 1030. 0, Auto: at the first start of an Ounce game with a GPU and driver version, the HMMA bench times each way (a second or less) and the fastest is kept in the cache folder's shader_cache/hmma.<driver>.txt, which later starts read (delete it to time them again); the rules' way stays unless another is 3% faster, and where the bench cannot run. The log says the times and the way. 1 Gather: each lane takes its A and B words from the others by shuffles. 2 Pairs: lanes 4 apart share B's words, half each. 3 Staged: A and B through a slot of shared memory a warp. 4 A-stationary: each product in the lane that holds its A words, only B's words from the others, by shuffles. 5 A-stationary staged: the same, B through the slot. They differ only in the order of the f32 sums (A-stationary's a tree of at most 6 roundings a term, the others' a chain of 16), all within an HMMA's bound. hmma_f16=1 keeps its half sums in the first three ways. It takes the place of hmma_astat, which is not read (Deprecations)
hmma_narrow_lds01 reads an SM86 LDSM transposed tile's halves with 16-bit shared loads instead of a 32-bit load and a shift and mask per half. RADV compiles those to ds_read_u16_d16: a Steam Deck's HMMA gather runs 3% and its pairs 9% faster, the stage-only path unchanged. The module keeps a 16-bit view of shared memory in sync with its whole-word stores; a program with a shared atomic or a sub-word shared store takes the general path. 0 = the general path

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