Skip to content

Optimize CommandBuffer::Playback - #289

Merged
genaray merged 1 commit into
genaray:masterfrom
Ryan-000:optimize-commandbuffer-playback
Aug 13, 2025
Merged

Optimize CommandBuffer::Playback#289
genaray merged 1 commit into
genaray:masterfrom
Ryan-000:optimize-commandbuffer-playback

Conversation

@Ryan-000

Copy link
Copy Markdown
Contributor

I reuse a long-lived, high-capacity CommandBuffer in my game to avoid per-frame allocations. However, in profiling, I noticed that even when only a few commands were added, Playback() still performed expensive clears on multiple large internal structures every time.

I've changed it so that it only clears those structures if they were actually used during the current playback.

@genaray
genaray merged commit e726ecb into genaray:master Aug 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants