Spawn actors from table without time delay?

Ilija_GavricIlija_Gavric Member Posts: 8

Hey,

I have a problem when spawning actors from table, the game makes a "glitch" it pauses for a small time, enough for players to see it. I spawn up to 50 actors, 5 actors and then every 0,01 another 5 actors... sometimes it works fine, the problem begins after some time when game engine increases even though i am playing the same level... and sometimes when i reset scene it frezes.

Any ideas?

Comments

  • ArmellineArmelline Member, PRO Posts: 5,397

    Spawning multiple actors at once, particularly 50 in one go, is likely to result in a slight delay. Even 5 at once will likely result in a delay. How many do you end up with on scene at once? Sounds like the game is getting overly crowded, which will happen when you have more than a few hundred actors on scene at once.

  • Ilija_GavricIlija_Gavric Member Posts: 8

    I never have more than 100 actors, because i am deleting them once player passes.

  • ArmellineArmelline Member, PRO Posts: 5,397

    We'll need to see the logic then to have a good chance of figuring out what's wrong, I'm afraid.

  • Ilija_GavricIlija_Gavric Member Posts: 8

    Do you thin that for GS 0,01 sec is to fast? I mean spawning at this rate...

  • ArmellineArmelline Member, PRO Posts: 5,397

    0.03s is the fastest you can spawn, but it shouldn't be causing your problems. The freezing upon reset implies there's a fundamental problem somewhere.

  • Ilija_GavricIlija_Gavric Member Posts: 8

    Freezing upon reset started when i changed my design to spawning actors instead of drag and drop placing them. I didnt changed anything else. I really dont know why game engine keeps building from 40 MB to 200 MB it does not drop even when i go to the start scene. Only levels that freeze are the once with spawn actors.
    Any help with game engine?

Sign In or Register to comment.