Max Entities, shadersize, Brushes in a Map?


(Micha1976) #1

Hi,

What is the Max number of entities, brushes,shadersize on an Map?
i use sof2.


(obsidian) #2

IIRC:

Max entities: 1024 (if using Q3Map2, I models aren’t part of that entity count… I don’t think lights are either).
Brushes: No limit AFAIK. Though too large of a map usually means more of a load on your computer system, memory, processing and video.
Shader Size: ??? What do you mean? Length of shader files, number of stages in a shader, number of shaders in a map - please specify.

Generally speaking, you shouldn’t ever by creating a map that will go anywhere near any of these limits, since you will usually be hitting some other barrier like polycounts rendered, overdraw, texture memory limits, etc. In other words, you’ll likely run into some hardware limit from your graphics card before hitting any of these. Always optimize accordingly is the key.


(SCDS_reyalP) #3

Note that the 1024 max entities includes entities created at runtime by the game. You probably want to leave a couple hundred free for these. In many q3 based games you can use /entitylist to see a list and count of current runtime entities. There is also a limit of 2048 compile time entities (things like lights, misc_models, func_groups are compile time only.)

Brushes are limited in the compiler to 32K, but you may hit the max brushsides limit first (262144)

There are also limits on planes, leafs etc…

You are limited to 1024 unique shaders, though again, this may include things outside your map.

As obsidian says, unless you are very careful with your design, you will run into peformance problems before you hit these limits.


(Micha1976) #4

Shader Size: ??? What do you mean? Length of shader files, number of stages in a shader, number of shaders in a map - please specify.

ok.

I have maked a big map… i have two maps merged to one map and when i play the map then come in the console window MAX_SHADER_SIZE hit in a yellow font type and some textures are black and white as it them would not give, there but those are. :angry:

Should I show sometimes a Screenshot?