Page 1 of 1
How many actors per frame?
Posted:
Thu Apr 19, 2012 10:04 pm
by phyzix5761
How many actors can be created per frame?
Re: How many actors per frame?
Posted:
Thu Apr 19, 2012 10:05 pm
by skydereign
Any number. Eventually though the game slows down trying to create them all, but technically it still does it in the same frame.
Re: How many actors per frame?
Posted:
Thu Apr 19, 2012 10:06 pm
by phyzix5761
Hmmm ok. Cause I am having trouble creating more than 8 actors per frame.
Re: How many actors per frame?
Posted:
Thu Apr 19, 2012 10:23 pm
by skydereign
Well that definitely would not be the lower limit. For instance in that time loop demo I made, it creates a little under 10000 actors in a single frame.
Re: How many actors per frame?
Posted:
Thu Apr 19, 2012 10:30 pm
by SuperSonic
What code are you using?
Re: How many actors per frame?
Posted:
Fri Apr 20, 2012 1:06 am
by phyzix5761
It's a code I'm working on for procedural generation of 2d terrain.
Re: How many actors per frame?
Posted:
Fri Apr 20, 2012 2:24 pm
by Hblade
=)
Use this code
- Code: Select all
int i;
//replace NUM with the number of actors
//you want to create per frame
for(i=0;i<NUM;i++;)
{
CreateActor("actor", ...);
}
Of course, don't put the ...'s xD Just use the standard createactor thing there.
Re: How many actors per frame?
Posted:
Fri Apr 20, 2012 7:42 pm
by phyzix5761
Yes my code is very similar to that. It's not the generation that is the problem it's something else. I just have to figure out what. Thanks though.
Re: How many actors per frame?
Posted:
Fri Apr 20, 2012 8:04 pm
by SuperSonic
Well, if you can upload the code you're using, maybe one of us can help you