Is there a way to speed up actor spawning?
tutenstein
Member Posts: 3
Hi,
I'm working on a mining sort of game and I'm trying to use a table to spawn terrain actors that will be destroyed when mined. The problem is that I have thousands of these terrain actors and the spawning is taking forever.
I'm working on a mining sort of game and I'm trying to use a table to spawn terrain actors that will be destroyed when mined. The problem is that I have thousands of these terrain actors and the spawning is taking forever.
Comments
A solution to your issue could be to place the tiles in the scene editor rather than spawning them at load time. Although this would probably make your level take quite a while longer to load.
Either way I think you're always going to have performance problems if you're trying to show thousands of actors on screen, GS just isn't made for that kind of heavy lifting.
But 'thousands' of actors does sound like an awful lot for the engine to handle...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
But be prepared... the logic in those demos is not for the faint of heart!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User