diff options
| author | bunnei <bunneidev@gmail.com> | 2021-06-21 11:58:12 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 11:58:12 -0700 | 
| commit | 2a3d3d3895133c2d1d3588a2f414e3f498388ccd (patch) | |
| tree | 1b2066a0d7e966faddc9efa0c643666bb67910d9 /src/core/hle | |
| parent | 83ac715e760b89dde9b38bd2745f811cdfaa8fb6 (diff) | |
| parent | 36250a47304399c76b60493b55dc64fc8d71c279 (diff) | |
Merge pull request #6475 from ameerj/unlimit-fps
nvflinger: Add experimental toggle to disable buffer swap interval limits
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index d1dbc659b..1d810562f 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -307,6 +307,9 @@ void NVFlinger::Compose() {  }  s64 NVFlinger::GetNextTicks() const { +    if (Settings::values.disable_fps_limit.GetValue()) { +        return 0; +    }      constexpr s64 max_hertz = 120LL;      return (1000000000 * (1LL << swap_interval)) / max_hertz;  } | 
