RenderAssetUsages::RENDER_WORLD assets are not cleaned when their handles are dropped #13500
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Milestone
Bevy version
0.13 and main
What you did
load many images, set them as
RenderAssetUsages::RENDER_WORLD
, display them then drop themWhat went wrong
GPU memory is not freed
Additional information
first video
images are loaded as
RenderAssetUsages::all()
, all displayed, then all the entities are despawned, there are no strong handles leftCPU and GPU memory are freed, as can be seen in the metal HUD
assets-both.mp4
second video
images are loaded as
RenderAssetUsages:: RENDER_WORLD
, all displayed, then all the entities are despawned, there are no strong handles leftCPU memory is freed as soon as the images are sent to the GPU, GPU memory is never freed
assets-render.mp4
Example code
this example loads all the images in the Bevy repoThe text was updated successfully, but these errors were encountered: