How many actors per frame?

Non-platform specific questions.

How many actors per frame?

Postby phyzix5761 » Thu Apr 19, 2012 10:04 pm

How many actors can be created per frame?
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: How many actors per frame?

Postby skydereign » Thu Apr 19, 2012 10:05 pm

Any number. Eventually though the game slows down trying to create them all, but technically it still does it in the same frame.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How many actors per frame?

Postby phyzix5761 » Thu Apr 19, 2012 10:06 pm

Hmmm ok. Cause I am having trouble creating more than 8 actors per frame.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: How many actors per frame?

Postby skydereign » Thu Apr 19, 2012 10:23 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How many actors per frame?

Postby SuperSonic » Thu Apr 19, 2012 10:30 pm

What code are you using? :)
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: How many actors per frame?

Postby phyzix5761 » Fri Apr 20, 2012 1:06 am

It's a code I'm working on for procedural generation of 2d terrain.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: How many actors per frame?

Postby Hblade » Fri Apr 20, 2012 2:24 pm

=)
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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: How many actors per frame?

Postby phyzix5761 » Fri Apr 20, 2012 7:42 pm

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.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: How many actors per frame?

Postby SuperSonic » Fri Apr 20, 2012 8:04 pm

Well, if you can upload the code you're using, maybe one of us can help you :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest