SHWotever / SimHub

Multi sim dashboard, bass shaker driver, ....
http://www.simhubdash.com/
797 stars 97 forks source link

Low Refresh rate while Game is focused #1119

Closed Ecatombe86 closed 2 years ago

Ecatombe86 commented 2 years ago

Describe the bug While using SimHub with Assetto Corsa, the overlay seems to get low refresh rate. I have a licensed version. If the game loses the main focus, I get normal/playable refresh rate on the overlay and the game is still running at 90+fps

Simhub version 8.0.4

To Reproduce Steps to reproduce the behavior:

  1. Run a race in AC
  2. Alt + Tab to activate overlay
  3. Alt + Tab back to AC
  4. Refresh rate of the overlay is like the not licensed version
  5. If I press the windows key, the game loses focus, still plays at same performance, the overlay gets to normal refresh rate.
  6. If I set the game as main focus again, the overlay refresh rate slows down again

Expected behavior I should always have 60fps on my overlay

Screenshots If applicable, add screenshots to help explain your problem.

Log files SimHub.log

Additional context small update, this seems to happen only when playing at 2k resolution, it doesn't happen on 1920x1080. It probably depends on some GPU priority thing, because when the game loses focus my fps goes from 96fps to 80, and the problem doesn't occur... Any tips?

SHWotever commented 2 years ago

Hi !

I've took a look at the log and it seems that you are using a combination of third party F1 HUD and Gary swallow plugins. Both are really heavy, can you try with this plugin disabled and with some stock huds, they are intended to get a better performance balance ?

Overall it's normal that there is a performance hit since simhub requires ressources to be drawn and mixing it with the game display will require some extra ressources too : https://github.com/SHWotever/SimHub/wiki/Dash-Studio-Overlays#performances

Le mar. 12 juil. 2022 à 01:55, Ecatombe86 @.***> a écrit :

Sorry for the spam, but I'm trying to find a solution: setting the Power usage in Nvida control panel to "Prefer Maximum Performance" for SimHub solved the thing, but the overlay is tanking my fps from 100 to 70, not really worth it, any other way to improve this?

— Reply to this email directly, view it on GitHub https://github.com/SHWotever/SimHub/issues/1119#issuecomment-1181127054, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ24YYUVX74WEHHVDTBF7TVTSX6PANCNFSM53FZPDXQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ecatombe86 commented 2 years ago

Hi ! I've took a look at the log and it seems that you are using a combination of third party F1 HUD and Gary swallow plugins. Both are really heavy, can you try with this plugin disabled and with some stock huds, they are intended to get a better performance balance ? Overall it's normal that there is a performance hit since simhub requires ressources to be drawn and mixing it with the game display will require some extra ressources too : https://github.com/SHWotever/SimHub/wiki/Dash-Studio-Overlays#performances Le mar. 12 juil. 2022 à 01:55, Ecatombe86 @.> a écrit : Sorry for the spam, but I'm trying to find a solution: setting the Power usage in Nvida control panel to "Prefer Maximum Performance" for SimHub solved the thing, but the overlay is tanking my fps from 100 to 70, not really worth it, any other way to improve this? — Reply to this email directly, view it on GitHub <#1119 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ24YYUVX74WEHHVDTBF7TVTSX6PANCNFSM53FZPDXQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

Hi, thanks for the response, I tried with different huds and performance can get better, but what I managed to realize is that almost everytime I give input to the game (pressing the accelerator for example, or the brakes), i have a fps spike decrease (like 20 fps hit!). That happens when using a third party hud, not with the stock ones

SHWotever commented 2 years ago

Hi I close this as it's related to third party plugins/dash known to be extremely heavy.

sdhengsoft commented 1 year ago

Thanks. This fix worked for me.