protonscr

Do not create GlobalBuffer if we don't intend to use it

vkd3dclosed
HansKristian-Work/vkd3d-proton#1461 · opened 2023-03-10 by HansKristian-Work · updated 2023-03-22 · 2 comments · github
HHansKristian-Work 2023-03-10 github

To improve churn on capture layers, we can improve memory allocator to:

  • Not allocate GlobalBuffer for committed textures which we don't suballocate and we don't use explicit clear on.
  • Allocate the global buffer without BDA and only use TRANSFER_DST usage if we still have to allocate it for purposes of just zerovram.
Ddoitsujin maintainer 2023-03-10 github

Allocate the global buffer without BDA

what exactly is this supposed to improve?

HHansKristian-Work maintainer 2023-03-13 github

Mostly to make it more friendly to capture tools, since if BDA + aliasing is used, e.g. RenderDoc is forced to capture it, it's not possible to prove it's not used. Should save several GB of memory during capture and replay.

Nothing extracted yet.