Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Hunter | |
Old Version | Published before Godot 3 was released. |
I have been working on a game using the Godot Engine for a while now. This is my first project using Godot. I like the engine for the most part, but have found that with lots of collision objects it starts to lag on my phone. The same app works fine on a computer however.
Below is an image of my game.
The large triangles are shooting smaller triangles (bullets) around. When to many of these bullets are on the screen the game starts lagging an unplayable amount. I was wondering if the problem comes from drawing too many sprites, or having too many collision objects, or both. I am also instancing and I wondered if that was slowing the game down. Should I create the bullets programmatically instead of as a scene?
Any tips to help me reduce lag are appreciated!
Thanks in advance.
Did you try exporting the game without collision to verify the problem really comes from physics? You could also profile the game through the remote debugger. Try “Deploy with remote debug”, the small icon on the right of “play scene”.
Which kind of collider did you used for the triangles, and which kind of shape?
Zylann | 2016-10-14 22:41