Any programs or methods I can find it with? What kills my framerate, so to say.
This would generally be nice to have, but also to figure out a problem of mine:
I don’t have pro, but every 7-15 seconds I get a small freeze that is annoying.
I can’t seem to find any heavy functions in the script made at that interval either (The most heavy function I could find with that aprox. interval was enemy spawning, and still had the freeze when I disabled it).
small freeze all 7-15 second normally indicates that you are trash flooding the garbage collector.
this is normally a result of very bad code with creating and destroying lots of objects instead of pooling them and overuse string operations which generates a massive amount of trash
Oh, thank you! That makes very much sense. This is a subject I haven’t looked into and not given any though.
Since I use particles for shooting and zombies I’m sure you are correct.
Pooling is the art of reusing objects, or? Could you give me a hint on how I go about doing this?