Skip to content

Quasar particles memory leak #111

@Lekeko

Description

@Lekeko

Description
Spawning a quasar particle emitter either by command or by code (entity client side events or renderers, etc...) causes memory leak

To Reproduce
Steps to reproduce the behavior:

  1. Create a simple quasar emitter with a particle, no modules needed
  2. Spawn in a world the emitter by any way possible

Expected Behavior
The ram spikes up upon emitter spawn and never backs down when it gets deleted, if spawned more and more, the entire system crashes, most cases forcing a system reboot

Screenshots
RAM usage graph

Image

System Information

  • Veil Version: 3.3.3
  • Minecraft Version: 1.21.1
  • Loader & Loader Version: Fabric 0.116.9+1.21.1
  • Operating System: Linux (Tested for windows 11 too, giving the same result)
  • CPU: i9 - 9900KF
  • GPU: NVIDIA RTX 3060
  • RAM: 32 GB DDR4

Additional Context
I checked with the
VeilRenderSystem.renderer().getParticleManager().getParticleCount();
VeilRenderSystem.renderer().getParticleManager().getEmitterCount();

and they indeed go back to 0 after it despawns the emitter, but ram is still spiked up and never goes back down

Metadata

Metadata

Assignees

Labels

1.21bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions