mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Reset FPS limit if anything related to resolution changes
This commit is contained in:
parent
139200c1e5
commit
7b3884c86b
2 changed files with 10 additions and 3 deletions
|
|
@ -72,8 +72,11 @@ namespace PowerControl
|
|||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
DisplayResolutionController.SetResolution((DisplayResolutionController.DisplayResolution)selected);
|
||||
Root["Refresh Rate"].Update(); // force refresh Refresh Rate
|
||||
Root["FPS Limit"].Update(); // force refresh FPS limit
|
||||
// force refresh Refresh Rate
|
||||
Root["Refresh Rate"].Update();
|
||||
// force reset and refresh of FPS limit
|
||||
Root["FPS Limit"].Reset();
|
||||
Root["FPS Limit"].Update();
|
||||
return DisplayResolutionController.GetResolution();
|
||||
}
|
||||
},
|
||||
|
|
@ -96,7 +99,9 @@ namespace PowerControl
|
|||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
DisplayResolutionController.SetRefreshRate((int)selected);
|
||||
Root["FPS Limit"].Update(); // force refresh FPS limit
|
||||
// force reset and refresh of FPS limit
|
||||
Root["FPS Limit"].Reset();
|
||||
Root["FPS Limit"].Update();
|
||||
return DisplayResolutionController.GetRefreshRate();
|
||||
}
|
||||
},
|
||||
|
|
@ -177,6 +182,7 @@ namespace PowerControl
|
|||
|
||||
Root["Resolution"].Update();
|
||||
Root["Refresh Rate"].Update();
|
||||
Root["FPS Limit"].Reset();
|
||||
Root["FPS Limit"].Update();
|
||||
|
||||
if (!GPUScaling.Enabled)
|
||||
|
|
|
|||
|
|
@ -11,5 +11,6 @@
|
|||
- Allow to control GPU Scaling and Display Color Correction
|
||||
- Do not use WinRing0 for GPU detection to control CPU/GPU frequency
|
||||
- Reset `LibreHardware` on system resume to fix battery bug
|
||||
- Reset FPS limit if anything related to resolution changes
|
||||
|
||||
If you found it useful buy me [Ko-fi](https://ko-fi.com/ayufan).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue