Graphics (2)

KeyDefaultEffect
vertex_input_dynamic_stateautoHow a draw gives the GPU its vertex layout. auto sets it as dynamic state (VK_EXT_vertex_input_dynamic_state) where the GPU's driver has the extension and its vertexInputDynamicState feature, but not on the drivers the extension bans (src/common/gpu/vk/extension_bans.txt) name for it: NVIDIA's before 580.119.02, Intel's Windows driver before 27.20.100.0 (of whose four numbers the driver gives the last two: below 100.0), Arm's Mali before r48 and Qualcomm's on Android, whose 512.800.48 draws it wrong; and not on Android, whatever the driver, as Eden. on sets it as dynamic state wherever the driver has it, those too. off puts it in the pipeline: each layout a program is drawn with takes a pipeline of its own, where dynamic state has one serve them all. The log says which, with the device, its driver and version. on on a device without the extension says so and puts the layout in the pipeline; any value but auto, on and off stops the game, saying so. Pipelines kept for the next run (.vkshaders) are made again when the choice changes
vulkan_ban_ignoreemptyKeys of the extension bans (src/common/gpu/vk/extension_bans.txt), separated by commas, whose bans the run goes over, to test again whether the driver still breaks them: VK_KHR_present_id2, or VK_KHR_present_id2,shaderFloat16. The log says each, as a warning with the ban it goes over where one holds for the device. Empty: every ban holds. A key the table has not stops the game, naming the key and the three nearest it has. The launcher's Settings have a box for each key, with what the bans on it say; the game's menu shows the value
astc_textures0How a GPU that samples BCn but not ASTC (most desktop ones) holds ASTC textures, from the start of the game to its end. 0 (Approximate) shows a texture at once decoded to RGBA8, then encodes it again as BC7 between frames, a few at a time, and frees the RGBA8 image: a quarter of RGBA8's memory, close to what the blocks decode to but not always the same. A texture whose blocks hold luminance alone is BC4, luminance and alpha BC5, and opaque colour on one line a 4x4 block BC1 (sRGB luminance too). 1 (Exact) decodes to RGBA8, exactly as the game's blocks decode, in four times BC7's memory. 2 (BC7 at load) encodes as BC7 as each texture loads, with no RGBA8 image before it: the frames that load textures are slower. Where the GPU samples ASTC it does nothing. It takes the place of astc_mode, whose Auto and BC7 are 0, Approximate, here (Deprecations)
texture_shed01 makes a texture of 1 MiB or more mapped whole, with mipmaps, that the GPU only reads with sparse residency (where the GPU has it, and VK_EXT_image_view_min_lod): when the GPU's memory runs short its finest level gives way, the texture sampled at half its resolution for a while, in place of the whole texture evicted and loaded again; the level comes back when there is room. 0 keeps textures whole
texture_half_res00 (Auto) makes such a texture (1 MiB or more, mapped whole, with mipmaps, only read) while the GPU's memory is under pressure (its use at 90% of the budget, or short in the last 300 presents) with sparse residency and its finest level never bound: sampled at half its resolution, a quarter of its memory, its size still the game's for textureSize and texelFetch. The level comes back when there is room. 1 never, 2 always
astc_lines_bc11Under astc_textures's Approximate, an opaque colour ASTC texture whose 4x4 blocks hold more colours than BC1's line (held as BC7) is held as BC1 instead, half BC7's memory and coarser. 0 (Auto) once the GPU's memory has run short, for the textures loaded from then on; 1 never (BC7); 2 from the start
texture_sysmem11 moves a texture the cache would evict, where the GPU's memory runs short, into system memory instead, where the GPU still samples it (more slowly, over the bus), and back when it is used and there is room. 0 evicts it, to be loaded again at its next use
bc7_queue0The thousands of blocks the BC7 encoder may have queued on the GPU before an upload waits for it to do them. 0 (Auto) gives 256 for every 2 GB of the GPU's own memory, from 256 to 4096, and 256 on a GPU that shares the computer's memory (a GT 1030, 2 GB, lost the device with more queued). 1 to 16384 is that many thousand
astc_compute_queue11 decodes and encodes a new ASTC texture on the GPU's compute queue, where it has one of its own, beside the drawing, and a load waits only for those encodes. 0 does it on the graphics queue, after the drawing before it. The textures are the same either way
astc_quick_mtexels8With ASTC textures encoded as BC7 as they load (astc_textures 2), a texture level of this many megatexels (2^20 texels) or more, all its layers or slices counted (8: a 4096x2048 level, or two layers of 2048x2048), is encoded quickly in the frame that first needs it, in the BC7 encoder's quick build (mode 6 from one line: softer edges), and its better version (the fast build) is made in the background by what astc_background picks. The better blocks replace the quick ones in the texture as they come, and go into the BC7 cache in pieces, which the next run copies with no encode (from a disk too slow for that frame, it encodes quickly again and loads the pieces over the next frames). The value is where a run starts: it stands for the time the fast build takes a Radeon 890M over that many megatexels (8: 0.21 s), and once the encoder has been timed on this GPU over as many texels, the size is the one this GPU encodes in that time, bigger on a faster one; the log says the size in use and where it came from (ASTC). 0 never encodes quickly: every level takes the fast build at once, which stopped one game's first 3D scene for 10 seconds on a Radeon 890M (ASTC)
astc_background1Who makes the better version of the levels astc_quick_mtexels encodes quickly. 1, the GPU: a piece of 256 KiB of blocks after each present, in a submission of its own, the next once it is done. 0, nobody: those levels keep the quick encode, and the next run encodes them quickly again

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