Spawn actors from table without time delay?
Ilija_Gavric
Member Posts: 8
in Help Wanted
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I never have more than 100 actors, because i am deleting them once player passes.
We'll need to see the logic then to have a good chance of figuring out what's wrong, I'm afraid.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Do you thin that for GS 0,01 sec is to fast? I mean spawning at this rate...
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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?