Low FPS in game, good in spectacor

bociequebocieque Join Date: 2012-02-17 Member: 146449Members
Hi. I bought this game today. I have very low FPS when playing - 20-35. But when i am spectacor i got 50-75 fps. My spec:
athlon II x4 3.55GHz, 8 GB RAM, AMD Radeon 6850

GPU usage during game is about 20-25%, in spec 50-65%. This game had really that bad optimalisation? Or only I`ve got a problem?
«1

Comments

  • zastelszastels Join Date: 2003-11-29 Member: 23731Members
    <!--quoteo(post=1904383:date=Feb 17 2012, 07:32 PM:name=bocieque)--><div class='quotetop'>QUOTE (bocieque @ Feb 17 2012, 07:32 PM) <a href="index.php?act=findpost&pid=1904383"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Hi. I bought this game today. I have very low FPS when playing - 20-35. But when i am spectacor i got 50-75 fps. My spec:
    athlon II x4 3.55GHz, 8 GB RAM, AMD Radeon 6850

    GPU usage during game is about 20-25%, in spec 50-65%. This game had really that bad optimalisation? Or only I`ve got a problem?<!--QuoteEnd--></div><!--QuoteEEnd-->

    This is actually very interesting. Thanks for posting this on the forums, maybe some other people can see if it affects them too.

    Your computer specs seem great. This game is currently in beta, you probably know that. The thing is, optimizations take longer to roll out than gameplay changes. If you check out the patch notes, you'll see the last two patches have really improved the games stability and performance on both client and server. It will continue to get better and better.

    Some tips to try for better fps:

    Open console with ~ key and type

    r_fog false
    r_atmospherics false
    r_bloom false

    Also drop your resolution down, as well as the graphical settings. Make sure you're observing what is improving your frame rate, and what does nothing.

    Also, you can try opening task manager when in the game with shift + ctrl + esc, go to processes, right click on ns2.exe, go to affinity, and try limiting the game to 1 core, or just 2. See if that makes a difference. I'm on AMD as well, and a few patches ago this made the game much more smooth for me.

    Also, consider measuring your performance in your own server, for the netcode in this game is not finalized and can cause performance like issues.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    Woah, if you're going to set affinities, use no less than 2 cores, or the game will suffer noticeably.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    The game is doing a lot less during spectator, also a known thing the engine does currently
  • zastelszastels Join Date: 2003-11-29 Member: 23731Members
    <!--quoteo(post=1904389:date=Feb 17 2012, 08:02 PM:name=player)--><div class='quotetop'>QUOTE (player @ Feb 17 2012, 08:02 PM) <a href="index.php?act=findpost&pid=1904389"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Woah, if you're going to set affinities, use no less than 2 cores, or the game will suffer noticeably.<!--QuoteEnd--></div><!--QuoteEEnd-->

    I think this is true, but only since gorilla when multi threading was implemented.
  • bociequebocieque Join Date: 2012-02-17 Member: 146449Members
    I try low details and res 1280x960, but still the same. I installed new drivers too. Eh... game is playable, but not comfortable. I will live with this, having hope for better performance ;)
  • MrYiffMrYiff Join Date: 2004-08-24 Member: 30867Members, NS2 Playtester
    As Kouji said, as spectator your client isnt having to process as much stuff as if you were actively playing so your FPS will be a bit higher most likely.
    NS2 is largely dependant on CPU rather than GPU power currently so driver changes (and even to some extent GPU hardware changes), wont have much impact unless you have a very old system.
  • zastelszastels Join Date: 2003-11-29 Member: 23731Members
    Does anyone know exactly what is not needing to be calculated in spectator? I think spectator taking less resources is probably the wrong assumption unless it was confirmed to be this way by the devs.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    There is no hud, no GUI (flash or Lua), no clipping-calculations (of the player), fewer traces (due to no clipping as well as no weapons-fire), arguably no prediction would be needed as it is no problem for the spectator to lag 1 update-frame behind of the players (therefor only needing interpolation, no extrapolation).

    A lot more could be conjured up I would imagine.
  • zastelszastels Join Date: 2003-11-29 Member: 23731Members
    <!--quoteo(post=1904430:date=Feb 17 2012, 10:02 PM:name=player)--><div class='quotetop'>QUOTE (player @ Feb 17 2012, 10:02 PM) <a href="index.php?act=findpost&pid=1904430"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->There is no hud, no GUI (flash or Lua), no clipping-calculations (of the player), fewer traces (due to no clipping as well as no weapons-fire), arguably no prediction would be needed as it is no problem for the spectator to lag 1 update-frame behind of the players (therefor only needing interpolation, no extrapolation).

    A lot more could be conjured up I would imagine.<!--QuoteEnd--></div><!--QuoteEEnd-->

    These are small things. My line of reasoning is that I haven't experienced this effect in other games.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited February 2012
    <!--quoteo(post=1904464:date=Feb 18 2012, 04:04 AM:name=zastels)--><div class='quotetop'>QUOTE (zastels @ Feb 18 2012, 04:04 AM) <a href="index.php?act=findpost&pid=1904464"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->These are small things. My line of reasoning is that I haven't experienced this effect in other games.<!--QuoteEnd--></div><!--QuoteEEnd-->
    They are by no means small things in this game currently due to optimisations left to do! Also NS2 beta is not quite there yet, to be compared to other (released) games in terms of performance :)

    A few build back, pre-19x, we found some serious issues with loads of things happening on screen completely bringing the tickrate of both server and client down to 0-10. Related to AFAIK, shooting, walking, collisions/hitboxes, damage done. Something a spectator does not have to process at all. The choke has been reduced quite a bit during the 19x builds, these still need more though. 19x has been kind to us though, UWE is getting this game into a very playable state :P
  • invTempestinvTempest Join Date: 2003-03-02 Member: 14223Members, Constellation, Squad Five Blue
    Like Kouji said, a players interactions with the world is not considered "small" by any means. When you are spectating you are essentially just viewing the world and not actually interacting with it so there is a big chunk of code that you don't have to run.
  • 1dominator11dominator1 Join Date: 2010-11-19 Member: 75011Members
    Performance will improve, I remember earlier on I couldnt even play the game it was so damn laggy (like 10 fps) Now it works quite well. Besides 25-35 is by no means unplayable, just not optimal. Try lowering res all the way and see if anything happens, although I suspect its networking.
  • RokiyoRokiyo A.K.A. .::FeX::. Revenge Join Date: 2002-10-10 Member: 1471Members, Constellation
    Yeah I'm thinking player is on the right track here.
  • amiralawiamiralawi Join Date: 2012-02-17 Member: 146488Members
    I'm having the same problem. None of the suggest fixes worked - I am running 800x600 at lowest graphics settings, options turned off, and I am getting maybe 5FPS in game. Task manager shows that NS2 is chewing up my CPU. Spectator mode seems to run at normal speed unless I open up the score menu (tab).
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1904474:date=Feb 18 2012, 04:20 AM:name=amiralawi)--><div class='quotetop'>QUOTE (amiralawi @ Feb 18 2012, 04:20 AM) <a href="index.php?act=findpost&pid=1904474"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I'm having the same problem. None of the suggest fixes worked - I am running 800x600 at lowest graphics settings, options turned off, and I am getting maybe 5FPS in game. Task manager shows that NS2 is chewing up my CPU. Spectator mode seems to run at normal speed unless I open up the score menu (tab).<!--QuoteEnd--></div><!--QuoteEEnd-->
    Wow 5FPs, what kind of CPU is that. If I had to guestimate it is ~2Ghz and maybe a Core2?
  • RokiyoRokiyo A.K.A. .::FeX::. Revenge Join Date: 2002-10-10 Member: 1471Members, Constellation
    Interesting... That would suggest the UI is the bigger culprit here.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited February 2012
    I've played the game with and without the HUD, the FPS didn't change, so it's not the marine/alien HUD visible during gameplay. The console however and the profiler are quite resource intensive --> When active, which they're not when actually playing the game ;)
  • amiralawiamiralawi Join Date: 2012-02-17 Member: 146488Members
    edited February 2012
    3.0GHz Core2Duo, which isn't exactly great but it's no slouch either. Slowdown for me appears to be related to HUD. Turning it off speeds the game up enough to be playable.
  • MkilbrideMkilbride Join Date: 2010-01-07 Member: 69952Members
    It's due to the damn LUA...

    It was a good idea in theory and on paper it sounded great...not so in actuality.

    My rig, while not something super amazing, is no slouch either. Pulling 99% GPU usage from my 470 at low resolutions, with medium / low graphics is pretty unacceptable, considering @ low it looks worse than many games from 2005 / 2006. And that is way worse, not just a little.

    CPU usage is...pretty meh. 2500K @ 4.5GHZ and it can be around 20-30%...I'd like to see 100% personally, and then 99% GPU usage, but only if I'm hitting 80FPS @ high. Game, maxed out, at least with the current beta graphics, looks to be about 2008.
  • matsomatso Master of Patches Join Date: 2002-11-05 Member: 7000Members, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Shadow, NS2 Community Developer
    You can just turn on the profiler and compare (console command : 'profile'). In spectator mode, you are not running OnPredictMove which deals with all the calculations on how your input changes the world. As that's run x times every frame, where x is related to your latency and framerate (and to a lesser degree the server tick rate too), it means that higher framerate and higher latency leads to more CPU being spent per frame - its really hard to get high framerates because the amount of CPU you spend per frame increases. Doubling the CPU will not lead to a doubling of the framerate.

    And yes, most of the CPU here is indeed consumed by lua. It's a lot better than it used to be, but still a bit away from where it needs to be.
  • AsranielAsraniel Join Date: 2002-06-03 Member: 724Members, Playtest Lead, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow, Subnautica Playtester, Retired Community Developer
    And its not really luas fault, if you write the same code in c++, its also going to be slow. Its mostly the fault of the prediction code. The upside is that you have a very good prediction, even with much lag and low fps (much better than other games).
  • bociequebocieque Join Date: 2012-02-17 Member: 146449Members
    <!--quoteo(post=1904469:date=Feb 17 2012, 11:14 PM:name=invTempest)--><div class='quotetop'>QUOTE (invTempest @ Feb 17 2012, 11:14 PM) <a href="index.php?act=findpost&pid=1904469"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Like Kouji said, a players interactions with the world is not considered "small" by any means. When you are spectating you are essentially just viewing the world and not actually interacting with it so there is a big chunk of code that you don't have to run.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Yes i know that, when im spectacing FPS will be a bit more. But in NS2 difference is to big. 18-40fps - game, 35-70 - spec.
  • sonix1977nlsonix1977nl Join Date: 2006-12-02 Member: 58831Members, Reinforced - Silver, WC 2013 - Supporter
    In the end it doesn't matter if it's hard or if alot has to be done by the code. The simple fact is that the game is far from confortable to play for alot of players including me. And whether a game plays comfortable or not decides how popular it will be. The gameplay is astonishing, but is hampered by the low performance.

    I'm curious as to how much performance improvement UWE thinks can be had in this game over the next few months.
  • arualarual Join Date: 2005-03-12 Member: 44989Members
    UWE have already made it known, just yesterday in fact, that they have 2 developers working on optimising the game and that they have some ideas up their sleeve already. Just bear with it for now.
  • MuYeahMuYeah Join Date: 2006-12-26 Member: 59261Members
    I get a similar thing in the readyroom (as well as spectating). I'll have 100fps (it seems to be capped) in the RR then as soon as I join a team it drops to ~75-80.

    Specs are i5 2500k @ 4.6GHz, radeon HD6870, 8GB ddr3, win7 64bit.
  • ZenoZeno Join Date: 2007-09-05 Member: 62183Members
    edited February 2012
    <!--quoteo(post=1904515:date=Feb 18 2012, 10:16 AM:name=Asraniel)--><div class='quotetop'>QUOTE (Asraniel @ Feb 18 2012, 10:16 AM) <a href="index.php?act=findpost&pid=1904515"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->And its not really luas fault, if you write the same code in c++, its also going to be slow. Its mostly the fault of the prediction code. The upside is that you have a very good prediction, even with much lag and low fps (much better than other games).<!--QuoteEnd--></div><!--QuoteEEnd-->
    Max said something about writing an own lua interpreter once...Sure it won't be in 1.0 (and probably not after that either) with only 2 programmers but I think it says that lua IS indeed a problem. Not that I understand much about programming but.....

    <!--quoteo(post=1904503:date=Feb 18 2012, 09:31 AM:name=Mkilbride)--><div class='quotetop'>QUOTE (Mkilbride @ Feb 18 2012, 09:31 AM) <a href="index.php?act=findpost&pid=1904503"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->CPU usage is...pretty meh. 2500K @ 4.5GHZ and it can be around 20-30%...I'd like to see 100% personally, and then 99% GPU usage, but only if I'm hitting 80FPS @ high. Game, maxed out, at least with the current beta graphics, looks to be about 2008.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Look at MuYeah quoted below, he doesn't seem to have this problem. There's something wrong with your card, drivers or game files. I have an Ati 5870 paired with a weak CPU and I too get only low GPU load and the CPU is bottlenecking.
    Edit: of course I use high settings.

    <!--quoteo(post=1904556:date=Feb 18 2012, 02:32 PM:name=MuYeah)--><div class='quotetop'>QUOTE (MuYeah @ Feb 18 2012, 02:32 PM) <a href="index.php?act=findpost&pid=1904556"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->drops to ~75-80.

    Specs are i5 2500k @ 4.6GHz, radeon HD6870, 8GB ddr3, win7 64bit.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Poor old chap! Only 80fps? ;)
  • YuukiYuuki Join Date: 2010-11-20 Member: 75079Members
    Lua is around 20 times slower, but it also use less lines of code :

    <a href="http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=lua&lang2=gpp" target="_blank">http://shootout.alioth.debian.org/u32/benc...a&lang2=gpp</a>
  • bociequebocieque Join Date: 2012-02-17 Member: 146449Members
    In console write that ive got radeon 5700. This was my last gpu. I uninstalled all drivers on safe mode ofcourse, than install drivers to Radeon 6850. But dxdiag still show 5700. But in another games i dont have any problems with this.
  • WashuuWashuu Join Date: 2003-07-02 Member: 17891Members, Constellation
    I was running your exact same setup, but recently upgraded to an Intel i5-2500k instead. Greatly improved my performance. I even had my Rana 440 unlocked to 4 cores also. I am guessing you might have done that too.

    I believe I got the same FPS as you are getting, the Rana 440 just does not perform that well in this game. I wonder why~
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    <!--quoteo(post=1904570:date=Feb 18 2012, 03:51 PM:name=Yuuki)--><div class='quotetop'>QUOTE (Yuuki @ Feb 18 2012, 03:51 PM) <a href="index.php?act=findpost&pid=1904570"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Lua is around 20 times slower, but it also use less lines of code :

    <a href="http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=lua&lang2=gpp" target="_blank">http://shootout.alioth.debian.org/u32/benc...a&lang2=gpp</a><!--QuoteEnd--></div><!--QuoteEEnd-->
    Alright let me stop you right there, this is not the way to compare how NS2 would've run in C++. Firstly, you have to remember NS2 is a _realtime_ application, so a fast response-time is very important, eg. while when measured over a longer period of time a Lua-variant might perform less worse (percentage-wise), it needs to be on the dot immediately in this game. Then there's also the issue with the garbage-collector, which again forms a real problem due to the (relatively) huge memory usage of a AAA-game like NS2, resulting in issues of stuttering which to this day still haven't been resolved completely. Last but not least, the NS2-scripts have continues interaction with the engine, which depending on how efficient you go about it, would involve at least some context-switching, which is costly, and if it were done in those benchmarks you posted, it would've absolutely wrecked Lua's performance-numbers.
Sign In or Register to comment.