Page 1 of 1
Quake3 Engine Entity Limit
Posted: Wed Feb 11, 2015 5:57 am
by fontana
I know that the current limit is about 1024 entities.
What i'd like to know is, how much entities could a mod (entity+) handle?
Would it be possible to bump it up to 4096 or even 8192?
Re: Quake3 Engine Entity Limit
Posted: Wed Feb 11, 2015 7:09 am
by Theftbot
Re: Quake3 Engine Entity Limit
Posted: Wed Feb 11, 2015 8:23 am
by themuffinman
The limit is used both in the engine and the game logic:
../qcommon/q_shared.h wrote:
#define GENTITYNUM_BITS 10
#define MAX_GENTITIES (1<<GENTITYNUM_BITS)
With 1<<GENTITYNUM_BITS being equal to 2^10 = 1024. You'd have to make both a customized engine build along with its own game mod. So no, Ent+ wouldn't be able to do that.
Re: Quake3 Engine Entity Limit
Posted: Thu Feb 12, 2015 5:46 am
by mrd
Maybe I am a shmuck, but why did Carmack use bitwise ops there? Why not just #define MAX_GENTITIES 1024?
Re: Quake3 Engine Entity Limit
Posted: Fri Feb 20, 2015 5:23 pm
by themuffinman
Because GENTITYNUM_BITS is also used...
https://github.com/ioquake/ioq3/blob/ma ... mmon/msg.c
Re: Quake3 Engine Entity Limit
Posted: Sat Feb 21, 2015 1:32 am
by mrd
Alright, I'm a shmuck. Thanks