FPS Killers List em

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

FPS Killers List em

Post by Gen Cobra »

Well I really need some thoughts from those in the mapping community regaurding the biggest killers of fps. Please list any thoughts you may have on the biggest cause/'s of a drop in fps.
Thank You
-GEN COBRA
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Poor vis design.
Image
Surgeon
Site Admin
Posts: 1386
Joined: Tue Jun 04, 2002 1:15 am
Location: Stirling, Scotland
Contact:

Post by Surgeon »

Many models in a small area
Admin
Image

.map Forums

Truth and Honor.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Seeing far away in a complex environment.
Admin .MAP Forums
Image
Head above heels.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

more structure than needed, make as much of it detail as possible

loads of LOD terrain

more ingame ai/bots/players
hope this helps, prob not cos it's all foreign 2 me :-/
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

-Bad brush work i.e. 'Z-fighting' of overlapping brushes.

-Lots of patch meshes, curves, terrain patches in small areas.

-Lack of VIS LEAF GROUPS. Large outdoor areas CAN be done (Gun Assault) and keep good FPS, even with nearly 100% LOD, water, etc. BUT, you need to plan carefully and make use of VIS groups everywhere possible. Plan your farplane distance and work accordingly with VIS groups.

-Detail lots of stuff, anything not blocking a fairly large field of view, broken walls, trim, non-enity brushes forming window/doors/steps, etc.

-You CAN have large amounts of destroyed chucks laying about with LOD and such, but detailing, VISing and such all must be combined. Use the 'r_showtris 2' command to try to narrow down busy areas.

-When using VIS, don't have large brushes cross from one VIS leaf to another. This negates the VIS leaf advantage for that brush. Each VIS leaf ONLY hides what is entirely INSIDE it, so any protruding brushes are uneffected and add to your vis count. I find keeping sizes to a max of 1024 units works best. Make multiple brushes if necessary for longer runs and VIS accordingly.

-Sometimes you build something that looks like it will kill FPS and if you mix up the tools you get good numbers, and other times you think it should be smooth and you get horrible FPS... really a crap shoot of design that you need to go back and rework over and over to tweak the FPS. In my SoS1 map, I thought the FPS would tank...and it runs 80+ in virtually every area because of using all the methods mentioned... AND

-'caulk/sky' texture: IF you are really hurting to bump FPS, use this texture on your sky box. Ain't pretty, but you might gain 20% or more. It allows the engine to blend the fog/farplane smoothly with the sky and helps fade in/out your brush work. Eliminates 'popping' in/out of brushes at a distance.

I could go on and on, but that's some on my experience over the last year.
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Thanks for all the info people. I really needed to hear a lot of that. 8-)

BTW I thought making something detail would only lessen compile time?
Image
User avatar
chris_in_cali
Sergeant
Posts: 65
Joined: Thu Jun 26, 2003 9:46 am

Post by chris_in_cali »

What does setting brushes to detail or structural do anyhow?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

by default most brushes are structural its in their properties. read this tutorial on detail brushes.

http://www.planetmedalofhonor.com/rjuka ... orial.html
User avatar
chris_in_cali
Sergeant
Posts: 65
Joined: Thu Jun 26, 2003 9:46 am

Post by chris_in_cali »

Thanks a lot, that was helpful, but I don't quite understand how changing the setting has such a profound effect. There something said about structural items being compared against eachother, but I'm not positive on how setting the item to detail removes it from this comparison but remains a solid, visible object. Does this have to do simply with being used for the lightmap or not, or what?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

vis runs through your map and says "ok if i stand in point a, i can see point b, but not point c. so when the player is at point a, ill draw point b, but not c." a detail brush is just one that vis passes through. if you have a solid brick structural wall, vis will say "ok i cant see past it to point b, so i wont draw point b from here." if you made it detail, vis would say, "ok i CAN see thru it to point b, so i will draw point b from here."
User avatar
chris_in_cali
Sergeant
Posts: 65
Joined: Thu Jun 26, 2003 9:46 am

Post by chris_in_cali »

Oh God. I can see how complicated that sample staircase would make things. Thanks a lot.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

staircases, handrail's, ladders, shelving, etc...

all these kinda thing just make detail, making it detail saves on compile time bcus there's less vis areas present...

imagine drawing a brush in XY view
______
|........|
|........|
|........|
that's 1 vis area, 6 faces, 8 vertices and 8 edges, simple enough
but if you were to add another brush ontop of it, say a column
______
|........|
|...[]..|
|........|
that'd then create 4 vis areas on the 1st brush
______
|.....|..|
|..|[]|_|
|..|.....|

bloody hell that took some working out, but just by adding a second brush in the centre to one existing one, you've just multiplied the visdata by 5 on the one face :(

making it detail however, will not change visdata, so it'd stay as 1 vis area :D
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I read that when vis is done it keeps cuting the map into volumes that do not contain structual brushes so more structure more cuts , a small brush will create a lot of small cuts that vis will have to deal with to see if the volumes can see other volumes .
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

[http://www.nibsworld.com/rtcw/tutorial_ ... art1.shtml]

Some good tips from the guys here, but I'd just like to add that if there's one thing you should always try to avoid is using loads of tiny brushes in (wide) open areas. Sure, in a somewhat closed off hallway it might not be a problem, but when there's loads of tiny 'crap' for the engine to render at a distance it'll bog down.
Post Reply