Skip to content

Don't delete the buffers that batch building writes into every frame.#17841

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
pcwalton:reuse-instance-buffer-allocations
Feb 16, 2025
Merged

Don't delete the buffers that batch building writes into every frame.#17841
alice-i-cecile merged 1 commit intobevyengine:mainfrom
pcwalton:reuse-instance-buffer-allocations

Conversation

@pcwalton
Copy link
Copy Markdown
Contributor

The collect_buffers_for_phase system tries to reuse these buffers, but its efforts are stymied by the fact that
clear_batched_gpu_instance_buffers clears the containing hash table and therefore frees the buffers. This patch makes
clear_batched_gpu_instance_buffers stop doing that so that the allocations can be reused.

The `collect_buffers_for_phase` system tries to reuse these buffers, but
its efforts are stymied by the fact that
`clear_batched_gpu_instance_buffers` clears the containing hash table
and therefore frees the buffers. This patch makes
`clear_batched_gpu_instance_buffers` stop doing that so that the
allocations can be reused.
@pcwalton pcwalton added D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes C-Performance A change motivated by improving speed, memory usage or compile times A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Feb 13, 2025
@tychedelia tychedelia added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Feb 13, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 16, 2025
Merged via the queue into bevyengine:main with commit 7801ed3 Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Performance A change motivated by improving speed, memory usage or compile times D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants