Skip to content

Disable throttling of requestAnimationFrame #4925

Closed

Description

@zcbenz

The --disable-renderer-backgrounding command line switch only disables throttling for timers, there is currently no way to disable throttling of requestAnimationFrame.

Refs #4317 (comment).

Activity

  1. nathansobo commented on Apr 11, 2016

    @nathansobo

    For posterity, what flag do we need to set now to disable backgrounding? Which version of Electron does it work on?

  2. zcbenz commented on Apr 12, 2016

    @zcbenz
    ContributorAuthor

    In the coming v0.37.6, you can use the backgroundThrottling option:

    new BrowserWindow({webPreferences: {backgroundThrottling: false}});
  3. OlsonDev commented on Apr 12, 2016

    @OlsonDev

    @zcbenz Will this allow us to achieve >60 FPS or just maintain 60 FPS when the window is unfocused?

    EDIT: Nevermind, just saw the docs diff.

  4. iamisti commented on Aug 17, 2021

    @iamisti

    NOT yet fixed. Just open performance monitor on your electron window and switch to a different one. Then going back to your electron window will show you that cpuy usage was VERY limited while it was running in the background.
    Electron team PLS FIX THIS! IT's been years now!

  5. danidan95 commented on Jun 16, 2022

    @danidan95

    anything yet?

  6. iamisti commented on Jun 16, 2022

    @iamisti

    looks like they ignoring it

  7. ProdigyView commented on Oct 21, 2023

    @ProdigyView

    Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions