SaschaWillems / Vulkan

C++ examples for the Vulkan graphics API
MIT License
10.34k stars 2.03k forks source link

Apply a random seed when NOT in benchmark mode to have 100% deterministic runs in all samples #1127

Closed takayhan-AMD closed 5 months ago

takayhan-AMD commented 5 months ago

These samples lack the check for benchmark.active when applying a random seed, which is done for other samples.

Tested locally, all samples continue to work fine as expected, in either mode.

SaschaWillems commented 5 months ago

Thanks for your PR. Very much appreciated!