i have some tiny details, like debris on the the floor, and i don't want the player to stumble over it. so rather then placing a huge clip brush over the floor, i convert all my debris brushes to a func_static and make it nonsolid (key: solid; value: 0).
is this the right way to do it? a func_static is a entity, right? so if have few dozens of these, will this hit the performance or cause any other problems? and should i make a func_static for each brush, or put all debris together in one func_static?
1. making debris non-solid is the way to go :icon14:
2. func_static is an entity in any game. if it has a name, chances are it's an entity
3. combining all debris into one func_static is only worthwhile if the game has a low entity limit and you have a dickload of entities, i.e. it's probably not worthwhile at all
seremtan wrote:3. combining all debris into one func_static is only worthwhile if the game has a low entity limit and you have a dickload of entities, i.e. it's probably not worthwhile at all
It's more an issue of batching/draw calls (http://iddevnet.com/quake4/LevelEditor_Performance) than it is entity count. If you have a huge pile of brush-based func_statics in a single portal area and if they share textures, you can save a lot of draws by combining them into 1 entity.