Valkirie / HandheldCompanion

ControllerService
Other
1.15k stars 89 forks source link

Running HC leads to stutters after longer periods of time #1054

Open CasperH2O opened 4 months ago

CasperH2O commented 4 months ago

Device manufacturer

Device model Legion Go

Handheld Companion Version 0.21.0.1

Describe the bug

As described by kurozer0 on Discord:

I was not using autoTDP yesterday when it happened. I've switched all of my profiles to a custom power preset with no other features just to help test the freezing OS issue. The stuttering seems to be related to time as it's only noticeable after 30 minutes when it starts. Once the issue starts it continues to get more severe. I suppose I should leave it on for hours with the stutter to see what happens. It seems to be related to using the controller as leaving the system idling in a game for hours doesn't cause stuttering. It may be related to unplugging/plugging in the power cable as I've had it start the moment I plugged in the power. Also, yesterday, my game was running for several hours with no issues. I was playing on and off while I was working. I unplugged to move to a different room. The stutters began within 30 minutes.

Other things I've noted:

There is a little frame time spike whenever HC is running and power is plugged/unplugged
The stutters are system wide as moving elements of the desktop, scrolling webpages, and changing games also stutter.
System temps, CPU, GPU, RAM are all normal
HC CPU and RAM are normal

Things that don't fix the stutter:

Changing resolution or refresh rate
Plugging/unplugging external monitor
Hide/unhide/disconnect virtual/physical controllers
Changing power presets
Closing/opening RTSS

Thing that do fix the stutter:

Closing HC
Hibernating system

Screenshots

There is an RTSS .ovl overlay option to show this more clearly.

Video on Discord: https://discord.com/channels/1054321983166365726/1072154895358107821/1225171021636571219

nyavana commented 3 months ago

I am having the exact same issue for months. It is not yet fixed on legion go. I have been tweaking settings but haven't found a solution yet, even including clean windows installation. This bug has prevented me from using HC, and hope it get fixed soon.

CasperH2O commented 3 months ago

Hey @nyavana we'd love to fix this one but we dont know how to reproduce it or what is causing it. Do you have any idea?

nyavana commented 3 months ago

Hey @nyavana we'd love to fix this one but we dont know how to reproduce it or what is causing it. Do you have any idea?

thanks for the reply. I am happy to provide any log / dump / event viewer / video or additional information, but unfortunately I have no idea whats the root cause of the issue. Sorry for the format, I wrote it on legion go touchscreen.

Apart from things tried by @kurozer0 above, I have tried the following:

Here are some characteristics of the issue:

Valkirie commented 3 months ago

How is CPU/Memory usage from HC when you start noticing those stutters ?

nyavana commented 3 months ago

How is CPU/Memory usage from HC when you start noticing those stutters ?

I can not observe any cpu, ram, or gpu spike when stuttering occur on windows task manager. It might happen regardless of tasks I do, even browsing chrome for a whole day with little cpu usage.

Valkirie commented 3 months ago

Could you monitor the TDP and Temperatures with HWiNFO when the issue arise ? I'd like to see if either of them are fluctuating.