Possible performance boost for NS2

MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
For those that don't follow Guru3D --

http://forums.guru3d.com/showthread.php?t=389072

See Cyberdyne's post (#18) for an easy to use tool: http://forums.guru3d.com/showpost.php?p=4816359&postcount=18

May or may not help, but given the discussion recently on NS2 performance if it does, then mores the better. I'm currently testing it though I have a pretty beefy system already (takes large firefights on Wooza's for me to drop below 60 normally).

Comments

  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    edited May 2014
    This sounds like it increases the page sizes in the memory for quicker access meaning more performance. I am not a tech expert, but couldn't this cause issues with the 32bit limitation of ns2?

    I remember back when I played stalker there was a mod that did the same thing as this, and it helped, but it was meant to help load times by putting more of the level into memory.

    Also, this helps memory read and write speeds which I don't think are an issue in ns2. This is because of the small amount of memory used, again partially because the 32 bit limitation.
  • driestdriest Germany Join Date: 2013-02-21 Member: 183251Members, NS2 Playtester, Reinforced - Shadow, WC 2013 - Supporter
    edited May 2014
    Basically, every time a computer program reads data from memory, the cpu needs to find out where exactly it is in physical memory. This is called virtual memory page translation [1]. Memory is organized into pages which are usually 4KB. The cpu caches the translation in a special cache called TLB (think of it like a book where it can quickly lookup where all the recently accessed pages of memory are).

    What the forum post suggests is telling the operating system to increase the size of these pages. Huge pages are usually 2MB on x86 systems with 64 bit or PAE support (basically all systems you probably have for gaming). This Increases the effective size of the TLB, because each entry can now cover 512 times the amount of memory as before. So there will be less page translation steps when a program reads new data from memory, which can free up a few cpu cycles that can be used to calculate the game instead.

    However, I doubt this has any measurable effect in most games, especially ns2. It will not significantly improve loading times, as these are mainly limited by the speed of the HDD. Most large pieces of data in a game are textures, which are stored in the GPU's memory anyways (which doesn't have vitual memory and all those address translation issues). The only effect this technique could have would be to speed up access to the game's code. However, because code usually accesses the same piece of memory a lot [2], this might also not be noticeable much.

    The downside of this approach is that if the memory region your mapping is not a multiple of 2MB, you will waste memory as you will have to use more than necessary (you can only allocate memory in units of 2MB now). if you map 10-20 different memory regions this means that on average you will probably waste about 10-20MB of memory.

    I'd love to see some benchmarks on this, but doubt there could be a statistically significant performance boost.

    [1] http://en.wikipedia.org/wiki/Virtual_memory
    [2] http://en.wikipedia.org/wiki/Locality_of_reference

    PS: This has nothing to do with 32/64 bit issues, all x86 cpus, if intel or amd have these page size options. It might however impact the available memory on 32 bit systems, as on a 32 bit kernel you can only address about 2GB of memory (worst case on windows 32 bit without /3GB boot switch). So now you wasted about 1% of available memory. Might not be noticable much, but with a game like ns2 that already runs out of memory a lot on these kind of systems...
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    Also it can screw with other stuff, so id not recommend it. They also explained it in a post somewhere.
  • MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
    Been using it for the last couple of days. I've had no issues. Anecdotally, it seems to have helped reduce stutter in big firefights on Woozas.
  • halfofaheavenhalfofaheaven Join Date: 2012-11-09 Member: 168660Members, Reinforced - Supporter, Reinforced - Gold
    You'll have more of a chance getting a performance boost from calling your PC a good boy every time before starting NS2 than this placebo crap.
  • It's Super Effective!It's Super Effective! Join Date: 2012-08-28 Member: 156625Members, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    Martigen wrote: »
    Been using it for the last couple of days. I've had no issues. Anecdotally, it seems to have helped reduce stutter in big firefights on Woozas.

    Your playing on Woozas 42 man server said it all for me xD
  • LocklearLocklear [nexzil]kerrigan Join Date: 2012-05-01 Member: 151403Members, NS2 Playtester, NS2 Map Tester, WC 2013 - Shadow
    You'll have more of a chance getting a performance boost from calling your PC a good boy every time before starting NS2 than this placebo crap.

    Just overclock to 6.6hz on N02.

    NS2 performance issues = solved.

  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    edited May 2014
    Using linux one gets a 25% performance boost on the cpu. I know this from my distributed computing work, specifically WCG. A 2500k at 4.5 ghz essentially would have the performance of 5.6ghz. If you can manage a 5ghz overclock, that would be the equivalent of a 6.25ghz overclock.

    If running the client though, then you need a nvidea gpu and then it will lose performance over windows.
  • MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
    Your playing on Woozas 42 man server said it all for me xD
    And your elitist comment adds absolutely nothing to the conversation.

    You'll have more of a chance getting a performance boost from calling your PC a good boy every time before starting NS2 than this placebo crap.
    Except it's showed a proven increase in performance in the ARMA 3 forums, where it originated, as well as this post in the very thread I linked. Maybe try reading what you're commenting on before posting so you don't look so silly?

    It's no wonder NS2 is dying with a community like this. It appears I shouldn't have tried to help those still suffering performance problems by linking an interesting thread. Not one person who has replied has actually tried and tested it. Which is remarkable considering it takes no effort to do so and the possible outcomes are that at best it helps and at worst it does nothing. I expected to see people reporting their experiences, as my system (3970X Tri-SLI) isn't exactly a good benchmark of one that could benefit.

    When did you all become so negative and cynical?
  • RapGodRapGod Not entirely sure... Join Date: 2013-11-12 Member: 189322Members
    Dude... I don't think they were really that serious...
  • LocklearLocklear [nexzil]kerrigan Join Date: 2012-05-01 Member: 151403Members, NS2 Playtester, NS2 Map Tester, WC 2013 - Shadow
    Martigen wrote: »

    When did you all become so negative and cynical?

    Not to be negative - I did read over the post you linked.. but almost ALL of NS2'd performance issues are directly related to CPU.

    Network traffic and high numbers of entities and slow areas in the LUA to C++ code communication? = tons of CPU lag in NS2. And apparently there is nothing you can do about it.

    I tried your page size changes in the link with my i5 3570k @ 4.8ghz with Nvidia GTX580 and I still bottleneck out on CPU and drop into 40-60 FPS in mid-late game.

    So what's to be positive about lol.
  • MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
    edited May 2014
    Locklear wrote: »
    I tried your page size changes in the link with my i5 3570k @ 4.8ghz with Nvidia GTX580 and I still bottleneck out on CPU and drop into 40-60 FPS in mid-late game.

    So what's to be positive about lol.
    At least you tried it, kudos for having vision. Interesting too as it's supposed to help CPU bottlenecked applications, but of course every application is different -- which is why we need to try.

    I run at 2560x1600 and it took three GTX680s to eliminate them as the bottleneck, when NS2 is set to full details!
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    Ya know for the folk who are to poor for SSDs, hybrids, or loads of ram...

    You could just put your games on a separate partition (Disk is better) and format it with the max clustersize.
    * upside: less parts of a puzzle. So fragmentation is less often. Looking up each individual piece is faster.
    * Win7/8 auto defrag has less work to do, leaving more room for.. everything else.

    * downside, any part of a file or a file smaller then the clustersize is wasting diskspace.


    Even if it only helps like a small %, im in the 'why the heck not' group. My gaming partition is max clustersize. ;)

  • DaveodethDaveodeth Join Date: 2012-11-21 Member: 172717Members
    A tad excessive for one game
  • It's Super Effective!It's Super Effective! Join Date: 2012-08-28 Member: 156625Members, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    Wow, I must have struck a nerv or something, anywho...

    Certainty when compared to many of the games out there, NS2 isn't the most ...hardware friendy when it comes to running it silky smooth.

    I run at 1920x1080, play at well over 60+ FPS on max settings

    I have a i7-3770k 3.5Ghz not overlocked, 16 GB of ram, a single GTX680.

    My 20GB OCZ SSD. really helps loading times to the point where its more than bearable, besides you can spend a lot of time waiting for games to start anyways, whats the rush.

    I play on servers anywhere between 12-24 players, all along while recording footage to disk AND streaming, performance has no impact.

    I choose not play play on 42 players because that is simply chaos and I don't enjoy it.

    I did not mean any disrespect, but it sounded to me that you're hamstringing your computers performance by running it at mighty high resolution, and playing on 42 man server compounds that further. It's like trying to take your performance car built for track racing into really muddy terrain, but hey people like to off road I guess...

    /end elitist comment
  • MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
    Wow, I must have struck a nerv or something, anywho...
    I did not mean any disrespect, but it sounded to me that you're hamstringing your computers performance by running it at mighty high resolution, and playing on 42 man server compounds that further.
    It's actually seamless (given Tri-SLI) at lower count servers and only sometimes, as in my op, on large player counts like Woozas at full details. Less details or less res and it never hiccups. I didn't post asking for performance help, I posted to help those who do have problems, especially with less powerful machines as the linked thread is proving beneficial to other titles.


  • dePARAdePARA Join Date: 2011-04-29 Member: 96321Members, Squad Five Blue
    "and it never hiccups. "
    This server goes down to 5 ticks wich mean "hiccups for EVERYONE"
    Your triple SLI wont help here cause the server cant handle this ammount of players.

    But im sure this fact is a elitist comment also for you.
  • driestdriest Germany Join Date: 2013-02-21 Member: 183251Members, NS2 Playtester, Reinforced - Shadow, WC 2013 - Supporter
    This has nothing to do with "elitism" or a horrible community. The simple fact that you play on a 42 slot server and believe the game is smooth disqualifies your judgement in this matter, which is why people don't take you seriously. If you don't understand this criticism I strongly recommend reading up on the netcode and trying to run a large server yourself. This has nothing to do with your client's performance or how many expensive graphics cards you stuff into your pc.

    If you provide hard facts like a serious, unbiased benchmark people might enter into a discussion with you. However, doing so is kind of hard in NS2, because there is no suitable demo system and thus it's almost impossible to reproduce the exact same conditions for a large number of measurements.
  • LocklearLocklear [nexzil]kerrigan Join Date: 2012-05-01 Member: 151403Members, NS2 Playtester, NS2 Map Tester, WC 2013 - Shadow
    edited May 2014
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    psst.. the reformatting (yes emptying) your gaming partition is supposed to be for the whole partition, not just ns2.
    Just saying. (Dont do it on SSDs, no point)

    Also lets stay in the spirit of the topic folk? :D
  • MartigenMartigen Australia Join Date: 2002-11-01 Member: 2714Members, NS1 Playtester, Contributor, Reinforced - Onos
    edited May 2014
    dePARA wrote: »
    Your triple SLI wont help here cause the server cant handle this ammount of players.
    *facepalm* I don't play just on Woozas.

    I said --
    It's actually seamless (given Tri-SLI) at lower count servers
    And obviously I'm talking about client side rendering, not net/server issues as and when they happen.

    driest wrote: »
    If you provide hard facts like a serious, unbiased benchmark people might enter into a discussion with you. However, doing so is kind of hard in NS2, because there is no suitable demo system and thus it's almost impossible to reproduce the exact same conditions for a large number of measurements.
    Precisely! Hence posting to get a wider sample base!

    Again, I don't usually have issues, I posted it to help others who might and -- yegads, if people actually tried it -- we'd find out if, indeed, it does help.

    Instead, we have a thread debating the value of Woozas and suggestions to help performance unrelated to the linked thread.

    So, on topic now yes? Anyone have anything to report back?

  • halfofaheavenhalfofaheaven Join Date: 2012-11-09 Member: 168660Members, Reinforced - Supporter, Reinforced - Gold
    Yes. It does absolutely nothing.
  • king_yoking_yo Join Date: 2009-04-15 Member: 67192Members, WC 2013 - Shadow
    I tried it and I don't think it had any impact. Thanks for sharing/trying tho. Since it worked for other games it was worth trying.
  • G_LockG_Lock Playtester_ FL Join Date: 2013-04-03 Member: 184624Members, NS2 Playtester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    A G-Sync enabled monitor does wonders for the mid to late game fps drops the game experiences and by wonders i mean its like a night and day difference.
    If you have a gtx650ti boost or higher i HIGHLY recommend you look into g-sync monitors you wont be sorry.

    geforce.com/hardware/technology/g-sync

    Yes i own one & they are unreal :D
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
  • driestdriest Germany Join Date: 2013-02-21 Member: 183251Members, NS2 Playtester, Reinforced - Shadow, WC 2013 - Supporter
    Precisely! Hence posting to get a wider sample base!
    As I was saying, we need any samples at all, not a wider one... You didn't provide any reliable information at all, and so has nobody else. All I see in this thread are some highly subjective opinions (which, what a surprise, say they don't even notice a placebo effect).
  • RejZoRRejZoR Slovenia Join Date: 2013-09-24 Member: 188450Members, NS2 Playtester, Reinforced - Shadow
    Having 18GB of RAM, this just has to be tested...
Sign In or Register to comment.