Author Topic: Reducing poly counts, combatting lag  (Read 1350 times)

DrRickDaglessMD

  • 68 Carbine
  • Posts: 376
Reducing poly counts, combatting lag
« on: January 24, 2006, 08:22:34 PM »
Hey,

I'm wondering if you guys could post all your tips on how to reduce the r_speeds and increase frame rates on DP maps in bsp. I've very very few overlapping brushes and that sort of thing. the map at the moment is rather large, and when you look in the direction of the other base across the middle area (which isnt visible) my fps will regularly drop from a usual solid 500 to about 65.

are there any techniques i can use to make the engine 'not draw' the other brushes at the far base or something? I'm sure i heard it in relation to fog or something like that.

ta for your help,

Dr Rick Dagless M.D

Eiii

  • Autococker
  • Posts: 4595
Re: Reducing poly counts, combatting lag
« Reply #1 on: January 24, 2006, 08:26:10 PM »
HINT BRUSHES!
There was a thread that contained information about them somewhere, but I have no clue where it is.
Well, it's in the 'Mapping' section...

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Reducing poly counts, combatting lag
« Reply #2 on: January 24, 2006, 11:45:08 PM »
Hint brushes won't magically reduce your polygon count, but they can help if you know how to use them.  The key things are:

- Avoid open areas.
- Don't make too much detail visible at once.

They both go together, to a degree.  If you have an open area with lots of detail, it's all going to be visible at once.  In addition to that, quake2 compilers break the map up at certain intervals, so even if you have a plain room with no detail, a small room will have fewer polygons than a large room, because the large room will be broken up into smaller polygons (this was necessary for the software renderer, I think).  If you need large areas, you can reduce the chopping by scaling the textures up.  If you have a big room 4x's the size of a smaller room and scale the textures up 4x's as big, the polygon breakup will be the same.

Reducing detail in a given area is a whole different beast.  It's really best to sketch out a design of your map and plan different areas.  You want to make each area of the map have as little possible visible to other areas.  One method for this is called "snaking", which you can see in brainstorm.bsp -- it looks like a large, outdoor area, but only small sections are visible at any given time.  Another method is the big 'ol "vis blockers" seen in the battle maps.  I don't care for these much, unless you can make them look natural.  Finally, there's the simple "rooms with doors" approach.  And of course, any mixing and matching of the methods.  Whatever you do, make sure you offer plenty of routes into and out of the bases to keep the gameplay interesting.