Performance Tweaks: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Fidcal (talk | contribs)
m A number of random edits/spelling etc
Line 1: Line 1:
This article relates to performance issues ''for players''. For performance information ''for mappers'', see [[Performance: Essential Must-Knows]]
This article relates to performance issues ''for players''. For performance information ''for mappers'', see [[Performance: Essential Must-Knows]]


== Show FPS ==
== Show FPS ==
Line 26: Line 25:
To edit doomconfig.cfg:
To edit doomconfig.cfg:


* UNinstall any current mission in the New Mission menu.
* Uninstall any current mission in the New Mission menu.
* Close Dark Mod
* Close Dark Mod
* Edit doomconfig.cfg in the darkmod folder
* Edit doomconfig.cfg in the darkmod folder
Line 68: Line 67:
=== Image downsizing ===
=== Image downsizing ===


As a last resort, you may enable image downsizing:  at the console, set '''image_downSize''' to '''1''' and then set a limit with '''image_downSizeLimit''', e.g., '''"image_downSizeLimit" "256"'''.  This reduces texture memory requirements and may completely alleviate hard drive thrashing.  There are similar cvars for bump and specular maps as well. '''Note: This may result in very blurry briefing and menu screens.'''
As a last resort, you may enable image downsizing:  at the console, set '''image_downSize''' to '''1''' and then set a limit with '''image_downSizeLimit''', e.g., '''"image_downSizeLimit" "256"'''.  This reduces texture memory requirements and may completely alleviate hard drive thrashing.  There are similar cvars for bump and specular maps as well.  
'''Note: This may result in very blurry briefing and menu screens.'''


===Drop in Frame Rates when Viewing Water===
===Drop in Frame Rates when Viewing Water===
Line 79: Line 79:


If you get blurry briefing and menu screens then in DoomConfig.cfg make sure you do NOT have image_downSize 0. Instead set it to 1. But see also [[#Image downsizing]]
If you get blurry briefing and menu screens then in DoomConfig.cfg make sure you do NOT have image_downSize 0. Instead set it to 1. But see also [[#Image downsizing]]


==Field of View Decrease==
==Field of View Decrease==


Note that this setting might occasionally produce odd effects such as a grabbed object seems to move a litte on release.
'''Note''' that this setting might occasionally produce odd effects such as a grabbed object seems to move a little on release.


You can get a performance improvement if you decrease the field of view. By default this is 90 degrees but you might try entering in the console or in your doomconfig.cfg...
You can get a performance improvement if you decrease the field of view. By default this is 90 degrees but you might try entering in the console or in your doomconfig.cfg...
Line 89: Line 88:
g_fov 85
g_fov 85


In addition, if you are playing a mission that is too good to miss and reach a very low performance area which is almost unplayable on your machine, you might consider setting the field of view extremely low temporarily to get you through then retore to 90 later...
In addition, if you are playing a mission that is too good to miss and reach a very low performance area which is almost unplayable on your machine, you might consider setting the field of view extremely low temporarily to get you through then restore to 90 later...


g_fov 50
g_fov 50


Fidcal: I have played comfortably on g_fov 75 and even think perhaps it makes nearby objects more realistically close so you can get right up to a table, etc. Not noticed any problem with restricted view.
Note from Fidcal: I have played comfortably on g_fov 75 and even think perhaps it makes nearby objects more realistically close so you can get right up to a table, etc. Not noticed any problem with restricted view.


== Player Shadow==
== Player Shadow==
Line 103: Line 102:
Or, in doomconfig (see above) change the following line from "1" to "0":
Or, in doomconfig (see above) change the following line from "1" to "0":


seta g_showplayershadow "0"
seta g_showplayershadow "0"
 


== Player Lantern Shadow==
== Player Lantern Shadow==
Line 111: Line 109:


Add "noshadows" "1" to entitydef light_lantern_moving in tdm_playertools_lantern.def and this stops the player lantern casting shadows. This helps improve performance slightly when using the lantern.
Add "noshadows" "1" to entitydef light_lantern_moving in tdm_playertools_lantern.def and this stops the player lantern casting shadows. This helps improve performance slightly when using the lantern.


==Gameplay Performance Tips==
==Gameplay Performance Tips==
Line 118: Line 115:


* Close all doors after you have passed through. Generally the game has to process both areas until you close the door if the doorway is still in sight.
* Close all doors after you have passed through. Generally the game has to process both areas until you close the door if the doorway is still in sight.
* Kill or KO every AI you can. You might not like to play that way but generally, AI still hog resources even out of sight (depending on how set up in the game.)
* Kill or KO every AI you can. You might not like to play that way but generally, AI still hog resources even out of sight (depending on how set up in the game.)
* Avoid alerts. A dozen guards searching for you will really slow things down on a low-end machine.
* Avoid alerts. A dozen guards searching for you will really slow things down on a low-end machine.
* Try to look down at the ground when moving along. Gazing up at a grand vista will slow you down. Best to do your gazing while standing still.
* Try to look down at the ground when moving along. Gazing up at a grand vista will slow you down. Best to do your gazing while standing still.


Line 129: Line 123:
Modern games need a lot of computing power, and while you don't need the absolutely newest hardware to play them, upgrading single components of your machine can help tremendously:
Modern games need a lot of computing power, and while you don't need the absolutely newest hardware to play them, upgrading single components of your machine can help tremendously:


* If you got '''less than 2 GByte''' main memory, consider upgrading your memory. This really helps to reduce swapping, which introduces quite noticable slowdowns.
* If you got '''less than 2 GByte''' main memory, consider upgrading your memory. This really helps to reduce swapping, which introduces quite noticeable slowdowns.
* If you got a graphic card from NVidia older than the GF 7x00 series, consider upgrading it.
* If you got a graphic card from NVidia older than the GF 7x00 series, consider upgrading it.



Revision as of 19:17, 7 July 2010

This article relates to performance issues for players. For performance information for mappers, see Performance: Essential Must-Knows

Show FPS

First, you can check how many FPS are achieved by opening the console with Ctrl+Alt+~ (tilde, ^ on German keyboards) and type:

com_showFPS 1

Optimizing the performance

Stop running programs in the background

Programs running in the background might either eat up memory that is needed for Doom3, and thus cause swapping to the hard disk, or they might consume CPU time or other resources. This can cause either general slowdowns or hickups during game play.

Run Doom3 in fullscreen

Running Doom3 in windowed mode might be quite a bit slower than fullscreen mode.

Reduce your resolution!

On older cards, Doom3's render engine is very expensive for every per pixel drawn, and reducing the resolution will help the most. For instance, at 1600x1200 the game needs to draw four times as many pixels as when running 800x600. The result with 800x600 will not look as bad as one might think – but the frame rate improvements might make it much more playable.

If you cannot set the resolution you want in the settings menu then enter it in doomconfig.cfg.

To edit doomconfig.cfg:

  • Uninstall any current mission in the New Mission menu.
  • Close Dark Mod
  • Edit doomconfig.cfg in the darkmod folder
  • Re-install the mission.
  • Whenever you UNinstall and install another mission, these changes will migrate to those FMs as well.

(Alternatively, edit both the doomconfig in the darkmod folder AND the one in the current FM game folder, eg, doom3\chalice.)

Search down for these cvars first and replace them with the values shown:

seta r_mode "-1"
seta r_customHeight "640"
seta r_customWidth "480"

Set the ambient shading to "Faster"

(Not valid for Thief's Den demo)

Inside the settings, change the ambient rendering method to "Faster".

Remove the custom interaction.vfp

(Not valid for Thief's Den demo.)

Rename /darkmod/glprogs/interaction.vfp (e.g., to interaction.bak.vfp) so that it is not used; ambient lighting will not look as good, but you may gain a few frames per second.

The game is very slow!

If you get loading times of 5 minutes or more, less than 10 FPS, or the game even stutters, please try this:

Look into your DoomConfig.cfg inside your saintlucia or thiefsden folder and check that the following settings are like shown below:

 seta image_usePrecompressedTextures "1"
 seta image_useNormalCompression "2"
 seta image_useAllFormats "1"
 seta image_useCompression "1"
 seta image_preload "1"

Image downsizing

As a last resort, you may enable image downsizing: at the console, set image_downSize to 1 and then set a limit with image_downSizeLimit, e.g., "image_downSizeLimit" "256". This reduces texture memory requirements and may completely alleviate hard drive thrashing. There are similar cvars for bump and specular maps as well. Note: This may result in very blurry briefing and menu screens.

Drop in Frame Rates when Viewing Water

Some players have reported a drastic drop in performance when an agitated water surface is in view. This on a Radeon card. Try entering this in the console. It disables the water visible surface effects but at least it might let you play normally...

set r_skipPostProcess "1"

Blurry Briefing and Menu Screens

If you get blurry briefing and menu screens then in DoomConfig.cfg make sure you do NOT have image_downSize 0. Instead set it to 1. But see also #Image downsizing

Field of View Decrease

Note that this setting might occasionally produce odd effects such as a grabbed object seems to move a little on release.

You can get a performance improvement if you decrease the field of view. By default this is 90 degrees but you might try entering in the console or in your doomconfig.cfg...

g_fov 85

In addition, if you are playing a mission that is too good to miss and reach a very low performance area which is almost unplayable on your machine, you might consider setting the field of view extremely low temporarily to get you through then restore to 90 later...

g_fov 50

Note from Fidcal: I have played comfortably on g_fov 75 and even think perhaps it makes nearby objects more realistically close so you can get right up to a table, etc. Not noticed any problem with restricted view.

Player Shadow

The player shadow slightly reduces performance. It has no game effect at all (not seen by AI for instance) apart from atmospheric effect so if you want to disable it enter in the console:

g_showplayershadow 0

Or, in doomconfig (see above) change the following line from "1" to "0":

seta g_showplayershadow "0"

Player Lantern Shadow

You may notice a drop in performance while using the player lantern.

Add "noshadows" "1" to entitydef light_lantern_moving in tdm_playertools_lantern.def and this stops the player lantern casting shadows. This helps improve performance slightly when using the lantern.

Gameplay Performance Tips

If you have done everything else you can and performance is still poor then one or two things you might do in game to help:

  • Close all doors after you have passed through. Generally the game has to process both areas until you close the door if the doorway is still in sight.
  • Kill or KO every AI you can. You might not like to play that way but generally, AI still hog resources even out of sight (depending on how set up in the game.)
  • Avoid alerts. A dozen guards searching for you will really slow things down on a low-end machine.
  • Try to look down at the ground when moving along. Gazing up at a grand vista will slow you down. Best to do your gazing while standing still.

Last resort: Upgrade your hardware

Modern games need a lot of computing power, and while you don't need the absolutely newest hardware to play them, upgrading single components of your machine can help tremendously:

  • If you got less than 2 GByte main memory, consider upgrading your memory. This really helps to reduce swapping, which introduces quite noticeable slowdowns.
  • If you got a graphic card from NVidia older than the GF 7x00 series, consider upgrading it.

Upgrading your CPU will be quite complicated and the cost might be so sadly high that you could rather buy a new complete computer. Upgrading the hard disk will usually not help much with gaming, unless you are running out of free space.

See also

See also the FAQ.