From 9465ea36d837795428fac623c6e1b8214068919a Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Mon, 25 Mar 2019 21:27:30 -0700 Subject: [PATCH] #446: cap default frame rate to 30fps (based on M1503339) --- gfx/thebes/gfxPlatform.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index d737d98ac..762b15ef4 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -2138,7 +2138,8 @@ gfxPlatform::IsInLayoutAsapMode() /* static */ bool gfxPlatform::ForceSoftwareVsync() { - return Preferences::GetInt("layout.frame_rate", -1) > 0; + // TenFourFox issue 446 + return true; // return Preferences::GetInt("layout.frame_rate", -1) > 0; } /* static */ int @@ -2155,12 +2156,14 @@ gfxPlatform::GetSoftwareVsyncRate() /* static */ int gfxPlatform::GetDefaultFrameRate() { - return 60; + return 30; // TenFourFox issue 446 } void gfxPlatform::GetApzSupportInfo(mozilla::widget::InfoObject& aObj) { + return; + if (!gfxPlatform::AsyncPanZoomEnabled()) { return; }