Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Odd GPU load/performance behaviour

Discussion in 'Technical Help' started by gesp_shad, Jul 20, 2017.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. gesp_shad Apprentice Engineer

    Messages:
    222
    Howdy engineers!

    I am struggling with an odd issue with my game performance when it comes to GPU load.

    Specs:
    I7 5930K @3.8GHz
    32GB DDR4
    GTX 980Ti 6GB - Driver: 382.05
    144Hz Display

    I was setting the global display refresh rate to 60Hz in the nVidia driver, because at 144Hz the game uses way too much GPU power. The fans spin at 100% and the card produces a lot of heat.
    Furthermore I was not able to set an idependent value for the refresh rate and Vsync for the game either in the driver, in the config file nor in the game itself. It was overwritten by the global settings every time.

    I am currently bulding a quite large town on a dedicated server which demands quite a bit performance now.
    At 60Hz I will get about 30fps in game with a CPU load of 25% and GPU load of 35%, using 7GB RAM and 4GB VRAM.
    At 144Hz I will get about 55-60fps with a GPU load of 70%.

    So my question is, why is the game not using the potential of the GPU to get more fps at 60Hz or even at 144Hz?
    Is this a problem in the driver (I am aware it is not the latest driver) or the game itself? And is there a way to set independent values to the global driver settings?

    Cheers!
     
    Last edited: Jul 20, 2017
  2. Sir_Moodz Apprentice Engineer

    Messages:
    377
    weird, unless bottlenecked by cpu a gpu should always be at 100% load unless you are hitting your fps

    I also have surprisingly low fps in large worlds with a 1070 so I will check the usage later today
     
  3. gesp_shad Apprentice Engineer

    Messages:
    222
    After updating to the latest driver I got the following results:
    Slightly better performance at 60Hz: 45-50fps @65% load. The same result for 144Hz, which is worse than before. :stare:
     
  4. Sir_Moodz Apprentice Engineer

    Messages:
    377
    I did some very fast testings and the result is that I am also hitting about 30% load, no wonder I am only getting 30 fps...It seems to be related to very big cities, because in a normal world I get 80% load and max fps.

    I will do more testing later
     
  5. gesp_shad Apprentice Engineer

    Messages:
    222
    What cpu do you use? Do you think mine is bottlenecking the performance somehow?
     
  6. Sir_Moodz Apprentice Engineer

    Messages:
    377
    I have one of the best cpu's available, so if even mine is bottlenecking (hard) than they need to do some serious render cpu optimizations
     
  7. CptTwinkie Moderator

    Messages:
    4,457
    I've never seen anything like that. Most of us in the office just use the default NVIDIA settings and play the game. The fps isn't great but there's no weird underloading
     
  8. Sir_Moodz Apprentice Engineer

    Messages:
    377
    Have you tried playing in a massive city and see what the load is?
     
  9. CptTwinkie Moderator

    Messages:
    4,457
    send me one and I'll see how it runs. that's about the best i can do from home
     
  10. Sir_Moodz Apprentice Engineer

    Messages:
    377
    You can join the planetsNoLag server and go to the claims east side of Fareon.

    I just did another test and none of my cpu threads went over 50% so definitely not cpu bottlenecked.
    Yet gpu load was only 40% and I had about 40 fps. I very much would like to know the cause of this, because having 100 fps in that city would be great :D
     
  11. gesp_shad Apprentice Engineer

    Messages:
    222
    I would like to invite you to the medieval-engineers.eu server, too, but currently it is crashing every 2 min :eek:
     
    Last edited: Jul 20, 2017
  12. CptTwinkie Moderator

    Messages:
    4,457
    Is it a bug or a mod maybe?
     
  13. gesp_shad Apprentice Engineer

    Messages:
    222
    I dont know yet, since I am not the admin. It is either one of the latest mods (Armory, WarBanners, Extended Inventory) or someone was building a clang machine which got outta control.
    The admin said, the crashlog was the same as in this bug report.

    EDIT: Seems that someone has finally built a clang machine of death that repeatedly crashes the server after 5 minutes...

    EDIT EDIT: @CptTwinkie It is running again on Tuesday's backup. So if you like you can join and I will show you the world/town I am having problems with.
     
    Last edited: Jul 20, 2017
  14. gesp_shad Apprentice Engineer

    Messages:
    222
    Today it is worse again, max 25 fps @35% GPU load. 2 CPU threads are used a little bit more.

     
  15. CptTwinkie Moderator

    Messages:
    4,457
    This seems to be a hardware issue.
    Here's an empty world on a GTX 1070 @1080p
     
  16. gesp_shad Apprentice Engineer

    Messages:
    222
    Have you tested a large world with this machine?
    I use gsync with my display, could this be the problem, since i got different results with different refresh rates?
     
  17. CptTwinkie Moderator

    Messages:
    4,457
    We haven't done any testing with G-SYNC. It's possible that it could be causing an issue. Have you tried disabling G-SYNC?
     
  18. gesp_shad Apprentice Engineer

    Messages:
    222
    Yes, and all kind of settings within the nVidia Control Center. None of them had any effect to that issue.
     
  19. CptTwinkie Moderator

    Messages:
    4,457
    Hmmm, I'm also seeing a very low memory load on your card. It's much lower than mine and I'm in a new world with only the safe area. Could you share your log files? %appdata%\MedievalEngineers\MedievalEngineers.log and %appdata%\MedievalEngineers\VRageRender-DirectX11.log
     
  20. gesp_shad Apprentice Engineer

    Messages:
    222
  21. CptTwinkie Moderator

    Messages:
    4,457
    Wow, so much log spam. We're going to have to clean that up a some.

    I don't see anything that would affect it much unless there is a large cumulative affect from the mods.
    Have you noticed much difference toggling v-sync?

    At this point, I need to start profiling the performance. Could you send your world (zip'd) to MedievalEngineers@gmail.com, please? or you can upload it to the Steam Workshop and send us a link...your choice
     
  22. gesp_shad Apprentice Engineer

    Messages:
    222
    No, I was not noticing a difference with V-Sync on or off. Maybe that's because the driver still overwrites it with G-Sync technology?
    Regarding the world, I have to ask the server admin @zeronio at first if he would provide it, since it is a DS. Currently we are running 13 mods. Do you need a list them or are they listed in the log file?
     
    Last edited: Jul 30, 2017
  23. CptTwinkie Moderator

    Messages:
    4,457
    They're in the log
     
  24. gesp_shad Apprentice Engineer

    Messages:
    222
    Got the save file, sending it via email. Thank you so far!
    --- Automerge ---
    Keep in mind, that this save is a quite large (>200MB) dedicated server file, which takes some loading time (~10 min).
    It should be loaded either on a dedicated server, as well or on a very powerful machine.
     
  25. Sir_Moodz Apprentice Engineer

    Messages:
    377
    I also did some testing on this.
    Top scene is a very complex one with mods, gpu load here is 40%
    Bottom one is a vanilla scene with about the same amount of triangles. Gpu load here is 60%
    I think I will do some tests with other games to see what the gpu load is there. I am pretty sure the gpu is bottlenecking on something. More testing will be required.
    [​IMG]
     
  26. CptTwinkie Moderator

    Messages:
    4,457
    I loaded it up and things were going well as I flew to your town and landed there. A few seconds after I did there was a momentary freeze on the render thread (The F11 debug numbers disappear and come back). After that my GPU was only working 17-24%. I'm not sure what would cause that thread to freeze like that. We haven't seen that kind of behavior in a long time.
     
  27. gesp_shad Apprentice Engineer

    Messages:
    222
    Hm. I am just relieved, that I am not the only one having this problem.
     
  28. gesp_shad Apprentice Engineer

    Messages:
    222
    Any news on this?
    I was testing if the CPU is bottlenecked by structural integrity, so I turned it off on a world that I know of, that behaves very bad. But there was no difference.
    One of the players on our server built a massive construction and it takes almost 20 seconds to load in when you come near to it and results in an average framrate of 10 FPS. GPU is still underloading badly and the "main" CPU thread peaks at around 80-85% usage (thread #11), like on the screenshot I posted earlier.
     
  29. CptTwinkie Moderator

    Messages:
    4,457
    Yeah, the problem exists. We haven't had time to search for the cause. New things in the pipeline. Very busy. Might even be fixed soon by new things ;)
     
    • Like Like x 1
  30. gesp_shad Apprentice Engineer

    Messages:
    222
    I was doing further testings at the same scene:

    • Hyperthreading deactivated: No difference FPS wise, but CPU thread load seemed to be much more homogeneously like in your screenshot, @CptTwinkie rather than one almost maxed out thread like in my screenshot.
    • 1920x1080: 30 FPS, 50% GPU load
    • 3840x2160: 30 FPS, 100% GPU load
    • 1280x720: 30 FPS, 35% GPU load
    • V-Sync deactivated: 10-12 FPS less @35% GPU load. Toggling V-Sync in game won't apply immediately, though. You have to go back to the main menu. So I guess, that's another bug?
    Switching between resolutions is telling me, that there seems to be some kind of threshold in FPS, so the GPU will only render to a certain FPS level. I hope that is helping you at some point, when you have time to focus on this issue :?.
     
Thread Status:
This last post in this thread was made more than 31 days old.