FPS boosting technique!

HAMMER22HAMMER22 Join Date: 2003-06-18 Member: 17476Members
edited April 2012 in Technical Support
Hello folks,

If any of you are like me and have a rubbish graphics card with less than 512MB of video memory you may well find yourself having weird graphical glitches, crashes and errors in your console warning IDIRECT3DDEIVICE9::...blah...failed:Out of Video Memory!

Basically this means the game is slowly dying and for me at least will result in a crash, however I have found the solution! It will however require a little bit of 'modding' of the games files. Basically we are going to scale down and erase a number of the new HUD GUI systems which seem to be the main culprit for video RAM running out.

In order to do this you need GIMP and a .dds plugin which can be found here: <a href="http://code.google.com/p/gimp-dds/downloads/detail?name=gimp-dds-win32-2.0.9.zip" target="_blank">dds plugin download</a> (to install the plugin simply drop the .exe file into your gimp plugins folder).

Now navigate to your NS2 folder and go to: <i>...\natural selection 2\ns2\ui</i>. It is inside this folder you will find the offending image files. Essentially sort the folder by file size and you will find the following files at the top of the list: <i>unitstatus_marine.dds, unitstatus_alien.dds, health_circle_alien.dds, health_circle_marine.dds, marine_HUD_frame.dds, black_screen_borders.dds.</i>

Now open up all these files in GIMP (when the dds plugin asks if you want to load mipmaps, untick the box!) and then erase the entire image* and scale it down in Image->Scale Image half the original size. This will mean in game you won't get the nice little health circles or health bars for buildings and players but you reduce the load on your GPU massively. I essentially went from <b>unplayable 10FPS up to 30/40FPS, not in combat, and 20FPS, in combat.</b>

Of course this might also help other people suffering from FPS problems because these graphics files are some of largest in the game (5mb each!) and are likely to appear multiple times in any frame (e.g. lots of buildings, players, etc...) so I see no reason why this wouldn't help everyone.

Anyway, hope this helps some people like it has me, doing this has actually made the game playable now.

*Note you will still see the health of buildings and players as percentage so there is no downside really.

NB: I also noticed the infestation texture is pretty massive so in my own game I've reduced that 4x in size but since it was ugly in game anyway I've not really noticed.

Comments

  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Hmm, I'm guessing you mean less then 512Mb VRAM or less then 2Gb of system memory? I've never had issues with artefacts on screen, this actually seems like it would be caused by overheating of the GPU...

    But if it helps, good stuff. The memory footprint has gone down for NS2.exe quite a bit already though in the last few builds (1100Mb --> 800Mb) Even though they didn't actually work on lowering this, perhaps the new materials system is doing something with this, I dunno...
  • HAMMER22HAMMER22 Join Date: 2003-06-18 Member: 17476Members
    Ahha, yes right you are my video memory is 320Mb. So basically my graphics card is old and useless but this does seem to fix the problem. Also at first I did think it was over heating but my system monitor didn't seem to show any problems with GPU temperature while in game. When the errors started to appear the missing textures were simply replaced by a checker board texture (which is a texture you can find within the games texture folders) which also seemed to indicate it was not a heat related problem.
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    edited April 2012
    All UI textures were recently (build 201) changed from compressed DXT3 to uncompressed ARGB8 to reduce artifacts on UI elements such as the minimap. They went overboard with converting <b>everything</b> though, as artifacts aren't noticable everywhere. You could try saving them in DXT3 again to save even more memory space, though I can't guarantee the engine will still accept them in this format.
Sign In or Register to comment.