A large number of ParFree
by NEOK · in Torque Game Builder · 01/11/2006 (10:53 am) · 3 replies
My game goes very slow after a long run.
I figured out that ParFree value in Debug Banner is increased to 4000, it slowly dropped to normal value between 32~200 and game speed is also OK.
I'm not sure why t2d keep that free particle memory blocks so long.(I guess this blocks aren't reused)
My assumption on this problem is that I disabled the torque memory manager with TORQUE_DISABLE_MEMORY_MANAGER.
Otherwise, could I set the maximum Parfree value?
I figured out that ParFree value in Debug Banner is increased to 4000, it slowly dropped to normal value between 32~200 and game speed is also OK.
I'm not sure why t2d keep that free particle memory blocks so long.(I guess this blocks aren't reused)
My assumption on this problem is that I disabled the torque memory manager with TORQUE_DISABLE_MEMORY_MANAGER.
Otherwise, could I set the maximum Parfree value?
About the author
#2
Some particles were being deleted too late even though those are out of screen.
Sorry for disturbing you.
01/12/2006 (4:03 am)
It turned out to be my mistake.Some particles were being deleted too late even though those are out of screen.
Sorry for disturbing you.
Associate Melv May
The ParFree is allocated by t2dParticleEffects. T2D doesn't "keep" them too long, it keeps them as long as you've got active t2dParticleEffects. Delete the particle-effects and the ParFree disappears.
If the value is slowly decreasing, it is because the particle effects are being deleted, slowly.
Quite simply, your app is going slow because you're generating too many particles for your setup.
- Melv.