[SOLVED] Strangely low frame rates

m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
edited January 2015 in Technical Support
So I'm running an AMD FX-4170 @ 4.2ghz
with a HD 7970
And 16g ram @ 1600hz

Yet my frame rates range from 10 - 20fps, even on the lowest possible graphical settings @ native resolution. What's the problem here?

If you need any more information on my system, feel free to ask.

You can find my tech_support.zip attached.
«1

Comments

  • CmdrKeenCmdrKeen Join Date: 2013-05-21 Member: 185321Members, Reinforced - Shadow
    edited December 2014
    It is your CPU. NS2 is extremely cpu hungry. I had the AMD 8150 before I switched to Intel, and my framerate went from 30-80 to 100-200.

    And the FX 4170 performs almost half as well as the 8150 (single threaded) if I am seeing it right.

    Edit: Looked at the wrong data. Single thread performance seems to be the same. Still, the point remains that your CPU is most likely your performance bottle-neck. You can rule out the graphic card, if you try playing on a lower resolution and with low details, and the problem remains.
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    Hmm
    I disagree with Cmdrkeen, respectfully.
    Your CPU is on par with my own i7 920 (using the same resolution too) and you are also running over 4 Ghz. That should be way more than enough to never have 10 -20 fps since i on average hold ~100 give or take 30.

    You'll get 15-20 fps more by disabling ambient occlusion (and better input delay) but that cannot alone be the cause.
    Mind taking some screenshots (f12) with r_stats enabled in the console (~ key) when you have low fps?
    I can't imagine what is causing that, to that degree.

  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    I agree with Ironhorse. For the resolution specified the cpu is fine.
    I ran similar on a i7 930, which is barely better or worse depending on, from your amd cpu.

    Do indeed NOT run ambient occlusion. I shall also advice to disable shadows.
  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    A 4170 is the first iteration of the bulldozer architecture and is slower than an i7 920 in single threaded. Here is one set of benchmarks, I could pull up more. The piledriver 4350 should be comparable in single threaded tasks.

    I would still expect you to get closer to what CmdrKeen stated he had, 30-80 fps. Amd's current cpu's use an advanced, hardware based hyper threading solution. It has 4 integer cores, and 2 fpu cores. Ns2 uses up to 2.5 cores. I could guess, yes guess, that ns2 is using fpu cores of which you only have 2.

    To really get to the bottom of the matter, I would do as ironhorse says, take some screenshots (f12) with r_stats enabled in the console (~ key) when you have low fps.
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    edited December 2014
    IDK, it's not that far off, with a sample size over 2,000.
    Although i have OC'd my 2.67 ghz to 4 ghz, (but u can get that 4170 to 4.8 ghz) it still doesn't explain the gap, like we both mentioned.
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    Alright, so as requested, I have a couple of screen shots here.
    Please note that I first take a shot of the current graphical settings, and then shots from around Kodiak at those settings.

    Note that even on absolute minimum settings, frame rates never exceeded 20.

    Thanks guys.
  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    I didn't realize you meant your frame rates never exceeded 20. Your hardware is capable of much much more than that. I can tell you that kodiak is one of the worst performing maps, and that you are waiting on the render thread. That means you are waiting on your cpu, but it should not be that much.

    Iron Horse will be able to tell you more hopefully.
  • 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
    A plog or a profiler screenshot of the rendeder thread is needed. Looks liks something is vsry wrong here
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    @ Asraniel

    How can I go about viewing my renderer thread in this case?
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    Type "profile" in the console without quotes.
    Then when you are recreating teh worst case scenario fps (like those screenshots) press the space bar to pause it.
    Now use the bracket keys [ ] or arrow keys to select the worst performing frame at the bottom of the screen (it will be the tallest vertical bar)
    Now with that selected, expand the horizontal purple bars on the left by clicking on them, starting with the longest one, until you have the worst section exposed.
    Take a screenshot of that.
    Be sure to scroll down once you are paused, to ensure you are selecting the worst horizontal purple bar. (it should be near the top if its the render thread that is handled by the CPU)


    Something is most definitely very wrong here...
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    Also, reinstall directx (http://www.microsoft.com/en-us/download/details.aspx?id=35) and check the temperature (speedfan) and clockrate of your CPU (CPU-z) when you get these low FPS.
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    edited January 2015
    Alright, so this was a painful experience.

    It seems my game is quite unstable, with several crashes during opening, and crashes when trying to use the profile command.

    But after the pain, I've managed to review one of worst frames I could capture, without crashing the game.

    If its not what you were looking for, let us know and I'll try again.

    Edit - directx was also re-installed before this was done.
    cpu-z reads clock speed of 4214 mhz during lowest fps.
    note - same clock speed is reached when stress testing (ie prime95).
    HWmonitor had a max temp reading of 59c from cpu during this testing with a max cpu fan speed of 6308 rpm.
    Unfortunately these hot Brisbane days do not help my temps.
  • ObraxisObraxis Subnautica Animator & Generalist, NS2 Person Join Date: 2004-07-24 Member: 30071Super Administrators, Forum Admins, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Silver, WC 2013 - Supporter, Subnautica Developer, Pistachionauts
    Can you run the game in a small window, and open up task manager and take a screenshot of your CPU threads, similar to this? 3e796f82-cf05-4f65-9556-1e5aef7a7e05_44.jpg
  • 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
    Preload textures is slow, which indicates a slow hard disk maybe? But its very very slow, so thats confusing. @matso might knos more here
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    First off, Windows task manager is a utter joke, sadly, on cpu usage as it does NOT show interrupts, which also use the cpu.
    Use Process Explorer (from www.sysinternals.com yes you be redirected to MS)
    Added that if your hardware, like harddisk, is quite busy and crap on chipsetdrivers it may cause many interrupts which take priority above normal cpu tasks, maxing cpu to 100% even though task manager shows pretty much nothing.

    Second check your harddisk latency and queue. On the performance tab on task manager is a performance monitor button. Opening it gives you a new menu with a disk tab.
    Under the disk tab are 3 sections. Each section has different columns.
    In the middle section see how high your latency in ms is getting.
    On the lower section see how big the queue on your disks is. Anything consistent above 0.9 is a real problem with disk queues.
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    So firstly, @ Obraxis, find attached screencap with cpu load readouts from task manager

    Secondly, @ DC_Darkling, find attached screencap with cpu load readouts from Process Explorer. Note - I had a good run around for a couple of minutes before taking this cap. Highest latency recorded in Disk Activity is 38 from a system image. And the cue on my disks is 0.00 mostly constantly, except for brief jumps up to about 0.01/2, and rarely up to 0.05 at the most.
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    So firstly, @ Obraxis, find attached screencap with cpu load readouts from task manager

    Secondly, @ DC_Darkling, find attached screencap with cpu load readouts from Process Explorer. Note - I had a good run around for a couple of minutes before taking this cap. Highest latency recorded in Disk Activity is 38 from a system image. And the cue on my disks is 0.00 mostly constantly, except for brief jumps up to about 0.01/2, and rarely up to 0.05 at the most.

    Find attachments here.
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    Your task manager shows 31% cpu, process explorer shows 36%. (basicly pointing out what I ment)
    Nonetheless, that looks fine on cpu usage. But did you also experience bad stuff during your run? I assume you did as you included a ingame shot.

    If you did not mess up reading disk latency and disk queue then that indeed seems fine.


    Which makes me wonder, what is slowing this down? Its unlikely in ns2 as I havent seen other similar recent reports. (but lets keep a open mind)


    Possibilities / Follow ups:
    * Make a plog capturing the problem. Type p_logall in console while gaming, experience the problem, quit game. In your ns2 user folder is a .plog file. (%appdata%\natural selection 2\)
    Zip it and provide.
    * Make a process monitor dump. Get it from systinternals, run it (run capture, its the looking glass icon. it STARTS capture right away), experience problem, stop capture, save as .pml file. (pick the option to save all)
    Then zip it and provide.. (word of caution, it logs everything running on your computer during the capture, so anyone with process monitor can analyze the file and see what programs you run etc)
    You can also analyze the dump (after capure) yourself. I would suggest the following filter:
    - path 'contains' natural selection <include>
    - duration 'more then' 0.5 <include> (in theory show all events lasting more then half a second.

    if to much or nothing shows, adjust time. See if something lasts... long.


    At the moment I suspect something like a antivirus perhaps scanning all the files you are preloading, actively slowing the process down.
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    edited January 2015
    No need for a p_log when that profile picture shows the same information / culprit.

    Preloading textures is where things are breaking down and they should obviously not be taking that long. Can you run memtest86? It's an inconvenience, but testing your ram is the next logical step since it relates to Preloading those textures. We know there's nothing wrong with your CPU at least.

    Also, have you ran any artifact tests on your video card to ensure it's not having issues?
  • 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
    Maybe some AV goes crazy and scans every texture on load? Just guessing here
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    edited January 2015
    @IronHorse, a complete memtest86 diagnostic was run, no memory errors were found.
    Did you have a specific program in mind for artifact testing?
    Just yesterday I was benchmarking on unigens Heaven, and did notice a few strange shadow projections which could have been artifacts. However I disregarded those as the final performance statistics seemed fine.

    @Asraniel, I am running bitdefender 2011. I know it can be stubborn, but I have given ns2 another shot with all real time virus scanning off, and added ns2 to the scan white list. I did not perceive any noticeable change in performance, and frame rates were still the same.
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    Just ran OCCT for a couple of minutes, no errors were found.
    Frame rate was at a constant 60 for the entirety of the test.
  • YojimboYojimbo England Join Date: 2009-03-19 Member: 66806Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    edited January 2015
    Have you tried unparking your CPU cores?

    http://www.coderbag.com/programming-c/disable-cpu-core-parking-utility

    Also that CPU is in theory only a semi quad core as its 4 cores share 2 modules.

    I am running an i7 870 which is @ stock speed of 2.9ghz and I've never had low framerate dips like that. ever.

    It completely obliterates a 4170 so where the on par with 920 came from I have no idea.

    http://www.cpu-world.com/Compare/321/AMD_FX-Series_FX-4170_vs_Intel_Core_i7_i7-870.html

    Also there is a known issue running FX/Bulldozer cpu's on Windows 7 (presuming you're using win7)

    https://support.microsoft.com/kb/2645594?wa=wsignin1.0

    Try that hotfix and see what it does for you

  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    edited January 2015
    @Yojimbo, cpu was "unparked" using given utility by increasing current cpu speed to 100%. Accidentally used beta version.
    cpu cores were all unparked, hotfix was installed, computer restarted.

    No change in performance, unfortunately.
  • YojimboYojimbo England Join Date: 2009-03-19 Member: 66806Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    @Yojimbo, cpu was "unparked" using given utility by increasing current cpu speed to 100%. Accidentally used beta version.
    hotfix was installed, computer restarted.

    No change in performance, unfortunately.

    Shizzle man I'm at a loss at saying its nothing short of your CPU not being up to snuff, how does it perform in other games? Do you have any games that are CPU intensive aka MMO or RTS games?

  • 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
    The "PreloadTextures" seems to be the culprit; what it does is to make sure that textures belonging to props/objects around the player gets the proper priority for loading...

    The only thing I can think of that could cause problems would be if one or more files are missing and it tries to load them on every frame ... arguably, that should have a big glaring error message showing up. But they are only shown when in verbose mode...

    Try turning on verbose by typing "verbose 1" in console when you have found a bad spot.

    If it starts talking about missing files, verify your game cache.

    Hmm... this may be the third time we run into problems due to hidden log errors. Time to https://trello.com/c/PJd0dti8
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    edited January 2015
    @Yojimbo, yeah this situation seems to be getting dire. It's a shame, I really enjoy this game.
    I play forged alliance, and have never experienced consistently low frame rates like this, even on 1000 unit setons clutch game.
    I'm at a bit of a loss, I'd be willing to replace my cpu (and consequently my mobo) if I new for sure that this problem actually stemmed from my 4170. But I'm the sort of person who will only resort to purchasing new hardware only if all other options are exhausted.
  • YojimboYojimbo England Join Date: 2009-03-19 Member: 66806Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    edited January 2015
    @Yojimbo, yeah this situation seems to be getting dire. It's a shame, I really enjoy this game.
    I play forged alliance, and have never experienced consistently low frame rates like this, even on 1000 unit setons clutch game.
    I'm at a bit of a loss, I'd be willing to replace my cpu (and consequently my mobo) if I new for sure that this problem actually stemmed from my 4170.

    Sounds like a plan, I'd hang tight for now and try out matso's suggestion, he is the guru of fixes, if you do decide to upgrade in the future, come over to the darkside, I used to run AMD all the time but just find they can't hack raw performance like an intel can, (not fanboying) I ended up spending more money in buying new AMD cpus than buying 1 expensive intel cpu in the long run :)

    P.S. major steam sales are on at the moment, skyrim is going for mega cheap, you could sink a few hours into that while matso sorts out the trello business haha
  • 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
    Please try out what matso said, its the best guess currently
  • m1st3rnutsom1st3rnutso Brisbane Join Date: 2014-07-14 Member: 197420Members
    @matso I tried the verbose command.
    No mention of missing files or anything, all that's showing up is server history stuff.
    I'll go ahead and try verifying the cache.
Sign In or Register to comment.