Pauses / Stuttering with objectDelete
by Jay Barnson · in Torque Game Engine · 05/13/2005 (8:38 am) · 2 replies
More stupid questions to ask while I'm at work and unable to trace through game code:
I have some custom objects derived from ShapeBase and Projectile that are regularly being created and destroyed. However, I'm getting some really annoying stuttering (very brief pauses) that are occuring on (or shortly after) deleteObject is called. Since these are custom classes and I haven't really noticed anything like this in the demos, I'm assuming I've done something funky there... missed a critical step in my onAdd() function or something.
Note: This is most apparent in debug mode, but I'm seeing it in the release build as well.
I have some custom objects derived from ShapeBase and Projectile that are regularly being created and destroyed. However, I'm getting some really annoying stuttering (very brief pauses) that are occuring on (or shortly after) deleteObject is called. Since these are custom classes and I haven't really noticed anything like this in the demos, I'm assuming I've done something funky there... missed a critical step in my onAdd() function or something.
Note: This is most apparent in debug mode, but I'm seeing it in the release build as well.
About the author
Jay has been a mainstream and indie game developer for a... uh, long time. His professional start came in 1994 developing titles for the then-unknown and upcoming Sony Playstation. He runs Rampant Games and blogs at Tales of the Rampant Coyote.
#2
05/14/2005 (9:13 am)
Not that I am aware of - that should all have been preloaded by the datablock, shouldn't it? Is there a way to make certain of this? Right now I am adding no additional sounds, and the textures are incorporated with the modeling - I'm not doing anything fancy.
Torque Owner Cameron Tofer