Commit 1d4c7fc
committed
steamcompmgr: throttle overlay frame callbacks to output refresh under VRR
Under VRR, the main loop forces vblank=true every iteration so games
can get commit wake-ups at their uncapped rate. Overlays fall through
the FPS-limit throttle, so mangoapp receives a frame callback every
main loop iteration and renders flat-out, spiking power usage.
Throttle overlays on the latch path only, leaving the commit-done path
alone so overlay commits are still marked done immediately and the next
game-commit scanout picks up the freshest frame.1 parent f8b33d3 commit 1d4c7fc
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5682 | 5682 | | |
5683 | 5683 | | |
5684 | 5684 | | |
| 5685 | + | |
| 5686 | + | |
| 5687 | + | |
| 5688 | + | |
| 5689 | + | |
| 5690 | + | |
| 5691 | + | |
| 5692 | + | |
| 5693 | + | |
| 5694 | + | |
| 5695 | + | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
5685 | 5703 | | |
5686 | 5704 | | |
5687 | 5705 | | |
| |||
0 commit comments