-
Framerate/Crashing
Hi,
I'm making a game which has an effect when an object is collected.
It creates around 12 stars with vector movement and gives them random directions. These stars are then destroyed once they leave the play area.
Well... when there r around 30 ctive objects on-screen, the game gets choppy and randomly crashes aswell.
My PC is relatively hi-spec, and also I've seen games with far more active objects, but not suffering from framerate issues.
Are there any settings that I could alter to allow it to run more smoothly when there are a lot of active objects on screen.
Thanks in advance.
-
Re: Framerate/Crashing
Slowing down when there are only around 30 objects on the screen sounds unusual... it might be to do with how they're being created or moving.
If you can, could you post a file that demonstrates the problem in the File Archive?
-
Re: Framerate/Crashing
Thanks for the reply.
I've just realised that there are around 90 objects on sreen at a time, of which around 20 are using vector movement so I guess this would cause the frame rate drop.
The crashing seems to happen much less often now as I've added an extra Clickteam Movement Controller to handle the movements, so not too many objects are using one Controller at once.
Q. Do you think this could have been a reason for the crashing?
Also I seem to be having a problem with objects not being destroyed when they leave the play area. It works fine initially, but then stops destroying the items once the player moves up a slope to a higher Y value (or lower considering the Y axis is inverted).
Thanks for your help. Much appreciated. [cool]
-
Re: Framerate/Crashing
20 Objects with Vector movement should not cause a framerate drop due to the movement itself (if the graphics are large then they might for that reason). I have had 100s without any major slowdown.
If you have an example that sometimes crashes I'd be interested in seeing it to check if it is the movement or not.