mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Instead of compiling SPIR-V shaders twice, once with debug info and once without, this uses `spirv-opt` to remove the debug info from the SPIR-V shaders with debug info. This results in notable performance gains, as stripping the debug info from existing shaders is much faster than compiling them. As a result of this change the contents of the non-debug shaders change once. That's because shaders with debug info contain much more instructions and therefore more result ids. Stripping the debug info from shaders results in different result ids being used as when generating ones without debug info. While that doesn't result in a difference in the functionality of the shaders, it's a difference in their binary representation, causing their content hashs and therefore file names to change. After that one-time change the result ids are reproducible again. |
||
|---|---|---|
| .. | ||
| collada | ||
| graphics | ||
| gui | ||
| i18n | ||
| lib | ||
| lobby | ||
| maths | ||
| mocks | ||
| network | ||
| pch | ||
| ps | ||
| renderer | ||
| rlinterface | ||
| scriptinterface | ||
| simulation2 | ||
| soundmanager | ||
| third_party | ||
| tools | ||
| main.cpp | ||
| test_setup.cpp | ||