Skip to content

Commit

Permalink
set windowless fps to 120
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Nov 16, 2023
1 parent 4f24f98 commit 24d2ebf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions native/CefBrowser_N.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,10 @@ Java_org_cef_browser_CefBrowser_1N_N_1WasResized(JNIEnv* env,
jint width,
jint height) {
CefRefPtr<CefBrowser> 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();
}
Expand Down

0 comments on commit 24d2ebf

Please sign in to comment.