H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
202 stars 80 forks source link

Volatile dynamic buffers in Metal #1537

Closed colincornaby closed 7 months ago

colincornaby commented 7 months ago

Metal wasn't honoring that dynamic buffers should be volatile like the DX pipeline was. On modern systems - this should be pretty low impact. But it's still nice to implement.

Plasma refreshes its buffers every frame which can make volatile buffers a little niche. However - Metal Plasma triple buffers which means this could allow a buffer not currently being presented to be freed.

colincornaby commented 7 months ago

@Hoikas - I'm done with this branch - do you want me to merge it in?

Hoikas commented 7 months ago

Yeah, let's go ahead and merge this.