0ad/source
Dunedan cdd2f3636a
Use spirv-opt to strip debug info
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.
2024-10-25 08:26:54 +02:00
..
collada Use UTF-8 as encoding when working with files 2024-08-29 07:22:46 +02:00
graphics Add missing headers to tests 2024-10-18 17:27:48 +02:00
gui Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
i18n Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
lib Make CMatrix3D::operator*= behave as expected. 2024-10-08 16:04:22 +02:00
lobby Check for source of XMPP stanzas 2024-08-13 04:59:38 +00:00
maths Make CMatrix3D::operator*= behave as expected. 2024-10-08 16:04:22 +02:00
mocks Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
network Add missing headers to tests 2024-10-18 17:27:48 +02:00
pch Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ps Use vanilla cxxtest functionallity 2024-10-13 18:27:18 +02:00
renderer Cleans up code after renaming HWLightingModelRenderer to CPUSkinnedModelRenderer. 2024-10-19 23:24:40 +02:00
rlinterface Shutdown mongoose in rl-interface gracefully 2024-06-23 17:26:03 +00:00
scriptinterface Add final to classes introduced in f9114a87f2 2024-08-25 13:38:09 +02:00
simulation2 Fixes Future usage in CCmpPathfinder after 0eed117e6d. 2024-10-18 22:46:08 +02:00
soundmanager Don't check memory allocation made using new 2024-01-21 14:29:30 +00:00
third_party Use std::placeholders for json_spirit 2024-10-24 19:53:23 +02:00
tools Use spirv-opt to strip debug info 2024-10-25 08:26:54 +02:00
main.cpp Don't use std::shared_ptr to store m_ScriptContext and m_ScriptInterface in the CGUIManager 2024-06-27 19:09:30 +00:00
test_setup.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00