FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
267 stars 44 forks source link

Vulkan: Adjust allocation strategy #197

Open thatcosmonaut opened 5 months ago

thatcosmonaut commented 5 months ago

It turns out that copying to the BAR from the CPU is actually slow, so the concept of a "fast transfer buffer" was not correct in the first place. Getting rid of this streamlines the transfer logic, reduces VRAM usage, and may improve performance in texture upload bottleneck scenarios.

There's also no need to specify ignored memory properties - the driver is specific about what kind of memory types the GetMemoryRequirements functions return, so there's no need to constrict that further.

Additionally, setting the CACHED bit on buffer allocation is a massive speedup.

TheSpydog commented 5 months ago

Updated PS5 with the ABI change (it wasn’t using that parameter anyway) so this is good to go on that front.