streetpea / chiaki-ng

Next-Generation of Chiaki (the open-source remote play client for PlayStation)
https://streetpea.github.io/chiaki-ng/
GNU Affero General Public License v3.0
1.15k stars 74 forks source link

[BUG] Performance drops to single digit FPS when window out of focus #435

Open wmxp opened 3 weeks ago

wmxp commented 3 weeks ago

If alt tabbing to another window, chiaki-ng seems to switch to a background mode which completely tanks the play ability by dropping the fps to single digits and the input response to terrible levels. The latest chiaki-ng-win_x64-VC-Release.zip 1.9.0 and every release of prior of chiaki-ng has been this way, however the final chiaki4deck windows release before the name change does not exhibit this behavior, or at least not to an unplayable extent.

streetpea commented 3 weeks ago

The only update between the last Chiaki4deck release and the first chiaki-ng release was name changes and fixing launching with a profile. Do you have an extra profile created that you’re using (if so you could be launching the stream with different settings causing this). If not, there are no changes that would affect performance as the stream code didn’t change at all.

Please make sure you are using a hw decoder (ideally Vulkan) as closing the window can cause os to drop resources from the app causing this. It is ultimately the os’s decision not the apps decision causing this. Using hw decoder means less cpu resources so can still work in this lowered state.

also make sure chiaki-ng is set to always instead of power optimized in the background apps section (see https://support.microsoft.com/en-us/windows/windows-background-apps-and-your-privacy-83f2de44-d2d9-2b29-4649-2afe0913360a#:~:text=Privacy%20Windows%2011%20Windows%2010,option%20may%20use%20more%20power.)