sefinek / Genshin-Impact-ReShade

Enhance your Genshin Impact experience with the Stella Mod! Unlock safe features like ReShade graphical upgrades, custom shaders, and FPS boost for smoother, more vibrant gameplay. Dive into Teyvat's beauty like never before!
https://stella.sefinek.net
Other
222 stars 5 forks source link

FPS Unlocker `UsePowerSave` sometimes doesn't recognize focus change #41

Closed Epikest closed 5 months ago

Epikest commented 8 months ago

Describe the bug

the option UsePowerSave in FPS Unlocker sometimes fails to uncap the fps after returning focus to the Genshin Impact window.

To Reproduce

Steps to reproduce the behavior:

  1. set "UsePowerSave": true in unlocker.config.json
  2. start the game with the FPS Unlocker
  3. try ALT+TABing a couple times
  4. when the game window is focused the FPS could be locked to save power

Alternative method:

  1. click "Start game" in Stella Mod Launcher
  2. when the terminal window opens, click onto any maximized window to make it lose focus
  3. game will open and should be unfocused in the background
  4. upon ALT+TAB into the Genshin Impact window, the FPS will still be capped at the "START GAME"/"Login" page

Expected behavior

power draw reduced when window not focused, power draw increased when window focused.

Screenshots

image

Desktop

Additional context

most commonly occurs right after the Stella Mod terminal window closes and the Genshin Impact process starts.

sefinek commented 7 months ago

I will look into it soon

sefinek commented 5 months ago

This issue has been resolved. The fix will be available in the upcoming version

Epikest commented 5 months ago

thanks