summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-21 20:58:12 +0200
committerGitHub <noreply@github.com>2021-06-21 20:58:12 +0200
commit2a3d3d3895133c2d1d3588a2f414e3f498388ccd (patch)
tree1b2066a0d7e966faddc9efa0c643666bb67910d9 /src/core/hle/service/nvflinger
parentMerge pull request #6486 from CaptV0rt3x/httplib (diff)
parentconfig: Add frame limiter toggle hotkey (diff)
downloadyuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar.gz
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar.bz2
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar.lz
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar.xz
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.tar.zst
yuzu-2a3d3d3895133c2d1d3588a2f414e3f498388ccd.zip
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
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;
}