How to create 5000 sprites without lags?

0 favourites
  • 4 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • Hi. I'm making a game where I need to create about 2000-5000 sprites. I create them when I start the layout. This causes the game to freeze for 5-15 seconds, is there any way to avoid this?

    1. Pre populate the layout.
    2. Make a loading screen.
    3. Get a better pc.
    4. Don't do that.
  • Your best option probably is to hide this with a loading screen. You can also create them in batches, e.g. create 100 sprites every tick, which will create overall 6000 sprites in a second at 60 fps. You might still wanna hide that behind some transition/loading screen but it should at least mitigate some of the lag.

    Are you by any chance trying to do this on mobile btw? Because I can spawn 5000 sprites practically instant on my PC. It's a beefy one but still, 5-15 seconds freeze I can see happening on a phone.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi. I'm making a game where I need to create about 2000-5000 sprites. I create them when I start the layout. This causes the game to freeze for 5-15 seconds, is there any way to avoid this?

    Hi. What is the size of the sprite being created? 5-10 seconds is a very long period of time.

    Can you post an example c3p file with this result so we can help you better.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)