From 24d2ebf00e6c7315ac8ac33e8731c2d80bcef14b Mon Sep 17 00:00:00 2001 From: 1zuna Date: Thu, 16 Nov 2023 09:33:44 +0100 Subject: [PATCH] set windowless fps to 120 --- native/CefBrowser_N.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/CefBrowser_N.cpp b/native/CefBrowser_N.cpp index f7f17cd8..c172500e 100644 --- a/native/CefBrowser_N.cpp +++ b/native/CefBrowser_N.cpp @@ -1532,6 +1532,10 @@ Java_org_cef_browser_CefBrowser_1N_N_1WasResized(JNIEnv* env, jint width, jint height) { CefRefPtr browser = JNI_GET_BROWSER_OR_RETURN(env, obj); + + // Set windowless frame rate to 120 + browser->GetHost().get()->SetWindowlessFrameRate(120); + if (browser->GetHost()->IsWindowRenderingDisabled()) { browser->GetHost()->WasResized(); }