ValveSoftware / Dota-2-Vulkan

Tracker for issues specific to the Vulkan version of Dota 2 on Windows, Linux, and macOS
101 stars 17 forks source link

Option to stop recording multiple frames at once? #357

Closed kvark closed 3 years ago

kvark commented 3 years ago

This is a follow-up to #335 On Metal, we are able to comply with this use of swapchains. However, on D3D12, we can't acquire more than one frame at a time. Does Dota2 have an option to only acquire one frame at a time?

danginsburg commented 3 years ago

You can try +r_wait_on_present 1. I'm not certain if it will keep it from acquiring multiple images. It will force the main thread to wait on the renderthread for outstanding presents to complete. Seems like something you'll need to workaround on your side though to not tank perf?

kvark commented 3 years ago

Thank you for the answer! I was able to work around this in D3D12 backend.

. Seems like something you'll need to workaround on your side though to not tank perf?

Using "+r_wait_on_present 1" would definitely be bad, and that's not what I was requesting. That would stop GPU processing multiple frames in flight, while I was requesting to stop CPU recording multiple frames at once. Anyhow, this is now resolved :)