diff options
| author | 2021-06-16 12:54:52 -0400 | |
|---|---|---|
| committer | 2021-06-17 01:41:56 -0400 | |
| commit | 3522fc019cde7645c34eec4ca0b734a4d1a41614 (patch) | |
| tree | 0b93d3280398dc28327677e53713df25a50a1f59 /src/core | |
| parent | Merge pull request #6418 from clementgallet/sdl-audio-backend (diff) | |
| download | yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.gz yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.xz yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.zip | |
nvflinger: Add toggle to disable buffer swap interval limits
Enabling this setting will allow some titles to present more frames to
the screen as they become available in the nvflinger buffer queue.
Diffstat (limited to 'src/core')
| -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() { | |||
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | s64 NVFlinger::GetNextTicks() const { | 309 | s64 NVFlinger::GetNextTicks() const { |
| 310 | if (Settings::values.disable_fps_limit.GetValue()) { | ||
| 311 | return 0; | ||
| 312 | } | ||
| 310 | constexpr s64 max_hertz = 120LL; | 313 | constexpr s64 max_hertz = 120LL; |
| 311 | return (1000000000 * (1LL << swap_interval)) / max_hertz; | 314 | return (1000000000 * (1LL << swap_interval)) / max_hertz; |
| 312 | } | 315 | } |