Hi everyone.
I'm working on my first "big" project with construct 2. And I have a couple optimization questions. The first one is what is better.
Just using the when this object collides rule, or using a timer to say that every 0.02 seconds if object collides?
I'm making a very, very collision heavy game. And so far my performance has been very good. Getting a sold 60 fps. But I want to know what is more efficient for slower machines?
What are the draw backs to both? I know the collisions are not as accurate if you use a timer, but I don't need them to be. It just seems to me checking for collisions 20 times a second would be less processor heavy than checking every tick. Am I wrong? Missing something maybe
Second question: When I export to Node Webkit, it runs at a solid 60fps as well.. But out of no where, and in random spots it just seems to freeze for a couple of seconds. It doesn't seem related to the action on the screen, because it happens during down times as well. This does not happen in the browser. Any ideas what could be causing this?
Thanks a ton!
Adam