tomara-x / quartz

visual programming and dsp playground
https://codeberg.org/tomara-x/quartz
Apache License 2.0
36 stars 2 forks source link

artifacts left after circles are despawned #124

Closed tomara-x closed 3 months ago

tomara-x commented 3 months ago

run with the inspector and see what things are left behind (meshes? materials?) and find a way to cleanup

tomara-x commented 3 months ago

no, materials and meshes are dropped as expected..

tomara-x commented 3 months ago

ah! it's not artifacts left by us, it's not artifacts left at all, i think that's an integrated gpu thing..

tomara-x commented 3 months ago

this needs more testing, preferably on different machines/systems

note the amount of ram used by quartz in the empty initial state, create entities, duplicate until a bigger amount of ram is used (note that), delete all those entities, see if the ram amount drops or remains the same

anyone seeing this and is able to, tests are appreciated

tomara-x commented 3 months ago

whatever this is, it's most likely either a bevy bug or my hardware

tomara-x commented 3 months ago

see after #130 and #128

tomara-x commented 3 months ago

memory used by the world isn't deallocated. a vec isn't in the world

tomara-x commented 3 months ago

Like tables, archetypes can be created but are never cleaned up. Empty archetypes are not removed, and persist until the world is dropped