Batches and: detail/LOD groups, references, func_static and model_static entities


(Donnovan) #1

Here a resume of batches generated by use of:

  • Detail groups
  • LOD groups
  • References
  • func_static entities
  • model_static entities

The texture used is the same, and is only one, in all cases:

SDK view:

In-game view, form above, with “r_showBatches” set to “1”:

The room have the fewest number of textures possible, to try to avoid different batches with the same color.

If the colors aren’t fooling me, i conclude:

  • Only func-static entities and LOD groups creates new batches.
  • References don’t add extra batches.
  • model_static entities don’t add new batches.
  • model_static share the same batch with references, pure brush and brush into detail group.

This result was different from wath you expected?


(Violator) #2

Good research Prof. Donnovan :).

References do add extra batches I’m pretty sure, sometimes though the batch colour is reused which makes it harder to see whats going on. Model_statics do use the same batch though I’ve found as well.


(Donnovan) #3

No need to re-use of colors Violator since this test map have only 2 textures. I believe it re-uses colors when there is more batches than colors.

You see the 4 references share the same batch files? Also they share the batch file with the pure brush and pure brush into a detail group. This means reference does not add extra batch… or mean the “r_showBatches” thing is “broken”.


(Violator) #4

Detail groups makes sense for one batch (not tested that), but for LOD groups it won’t work as their rendering depends on viewer distance for the individual LOD group so AFAIK it renders a new batch for each LOD group. Detail groups will only not render due to portalisation I guess.


(pazur) #5

Very interesting. Thanks for this research :slight_smile:


(Donnovan) #6

:slight_smile:

“r_showBatchInfo” “1” seens to generate more accurate info about number of batches on screen. I will make tests with it.


(Donnovan) #7

Conclusions (final ones):

  1. Same texture shared by: brushs
    Batch count is 18

  2. Same texture shared by: brushs, brushs in detail groups
    Batch count is 18

  3. Same texture shared by: brushs, brushs in detail groups, references
    Batch count is 18

  4. Same texture shared by: brushs; brushs in detail groups, references, model_static entities
    Batch count is 18

x = brushs; brushs in detail groups, references, model_static entities

  1. Same texture shared by: x, brushs in LOD groups
    Batch count is greater than 18

  2. Same texture shared by: x, func_static entities
    Batch count is greater than 18

For donnations just call 123-456789-1011 :):):):):):):):slight_smile:
You can donnate food (candy).


(SebaSOFT) #8

Good research, Don, those investigations brings cool tips for us mappers.