|
Re: About entity_max error E1513 or E1005
[Re: 20BN]
#471297
02/27/18 07:28
02/27/18 07:28
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
there's a variable called max_entities that you can set at the start of the main function:
void main()
{
max_entities = 5000;
POTATO-MAN saves the day! - Random
|
|
|
Re: About entity_max error E1513 or E1005
[Re: HenWoll]
#471318
02/27/18 22:58
02/27/18 22:58
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
I don't think that's possible.
I think the best way is to create entities only when they are needed.
POTATO-MAN saves the day! - Random
|
|
|
Re: About entity_max error E1513 or E1005
[Re: 20BN]
#471790
03/19/18 20:51
03/19/18 20:51
|
Joined: May 2005
Posts: 868 Chicago, IL
Dooley
User
|
User
Joined: May 2005
Posts: 868
Chicago, IL
|
@Kartoffel THANKS your time.
I need more than 100K entities in level.( my dynamic system render less than 500 entities in area, not all render in screen). The engine crash when i set entity_max > 100000. But i need more entities support. I think you need to think about optimizing your game. If you are only rendering 500 at a time, you can use some clever programming to change/reposition entities when you enter a new area. Having 100000 or more entities will make any game run very slow if at all. Can I ask what kind of things you need so much of in your game?
Last edited by Dooley; 03/19/18 20:52.
|
|
|
Re: About entity_max error E1513 or E1005
[Re: Dooley]
#471804
03/20/18 05:45
03/20/18 05:45
|
Joined: Feb 2003
Posts: 146 RP China
20BN
OP
Member
|
OP
Member
Joined: Feb 2003
Posts: 146
RP China
|
@Kartoffel THANKS your time.
I need more than 100K entities in level.( my dynamic system render less than 500 entities in area, not all render in screen). The engine crash when i set entity_max > 100000. But i need more entities support. I think you need to think about optimizing your game. If you are only rendering 500 at a time, you can use some clever programming to change/reposition entities when you enter a new area. Having 100000 or more entities will make any game run very slow if at all. Can I ask what kind of things you need so much of in your game? less than 5000.
|
|
|
|