summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-16 18:54:52 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-06-17 07:41:56 +0200
commit3522fc019cde7645c34eec4ca0b734a4d1a41614 (patch)
tree0b93d3280398dc28327677e53713df25a50a1f59 /src/core/hle/service
parentMerge pull request #6418 from clementgallet/sdl-audio-backend (diff)
downloadyuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.gz
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.bz2
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.lz
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.xz
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.tar.zst
yuzu-3522fc019cde7645c34eec4ca0b734a4d1a41614.zip
Diffstat (limited to 'src/core/hle/service')
-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;
}