Author Topic: increasing MAX_ENTITIES in tr_types.h  (Read 3588 times)

robhamilton

  • Posts: 4
  • Turrets: +0/-0
    • my ccrma homepage
increasing MAX_ENTITIES in tr_types.h
« on: January 27, 2008, 11:06:41 pm »
Hi all,

I'm playing with the limits of how many entities ioq3 will let persist at any given time and was wondering if anyone knows to what extent a faster graphics card or one with increased memory will allow for more onscreen entites at the same time, given code modifications to the MAX_ENTITIES value in tr_types.h.

Basically, for my q3osc mod ( https://cm-wiki.stanford.edu/wiki/Q3osc ) I'm allowing plasma and bfg bolts to persist indefinitely, allowing them to bounce off walls and using simple homing methods to allow them to track player positions.

In tr_types.h there is the definition of MAX_ENTITES at 1023 with a note saying this can't be increased without changing drawsurf bit packing (see below). However I boosted this up to 10230 just for fun and was able to render many more entities on screen (until an eventual upper-limit of increasing lag set in)

#define   MAX_ENTITIES   1023 // can't be increased without changing drawsurf bit packing

I'm runninng an ATI Radeon X800 128MB card in Linux (Fedora 6) with open source drivers.

thanks

Rob

---------------------------------------------
Robert Hamilton
Center for Computer Research in Music and Acoustics (CCRMA)
Stanford University

http://ccrma.stanford.edu/~rob
https://cm-wiki.stanford.edu/wiki/Q3osc
rob hamilton
Center for Computer Research in Music and Acoustics (CCRMA)
Stanford University