Game fast first, then slowed down

Developing a resource-intensive game. (using 1.2.121)
There are multiple particlefx in use.
Also shooting many balls to collide with objects.
At the beginning, the speed was fast, as time goes on, it slows down.
Why?

Have you tried profiling?

1 Like

Attached a zip to show the problem. When you run the game, you’ll see a white circle in the center, click to the right of this white circle, a white ball will be fired. Initially fast, but after clicking and firing about 20 times, the speed of firing slowed down. Why? Thanks.

ques.zip (2.2 MB)

But have you tried profiling as @Pkeod suggests? If you use the web profiler when the game starts and make note of some of the values and the sample again when the slowdown has happened then perhaps you can draw some conclusions. Maybe the frame time is increasing, and if so you can drill down and see if it’s game object updates, rendering or scripts that account for the increase.

1 Like

Found the cause of problem: the collisionobject in the canon1.go. That is, if the collisionobject is removed in the canon1.go, then the firing speed stays the same past 20-30 firings.
Question: Is it possible to keep the collisionobject in canon1.go and maintain the same firing speed past 20-30 firings?
Thanks,