Skip to content

Reduce impact of refresh driver #446

Description

@classilla

Remove the refresh driver from the hidden window: https://bugzilla.mozilla.org/show_bug.cgi?id=1367830

Consider changing to #define DEFAULT_INACTIVE_TIMER_DISABLE_SECONDS 1 in layout/base/nsRefreshDriver.cpp (or some smaller number) and seeing what breaks. We could even possibly have InactiveRefreshDriverTimer::ScheduleNextTick be a no-op. However, see https://bugzilla.mozilla.org/show_bug.cgi?id=1352205 first.

Consider increasing the 1000.0 in nsRefreshDriver::GetThrottledTimerInterval so we can have throttled frame rates even slower than 1fps.

Remove E10S and telemetry from the refresh driver code.

Things not to do:
I tried setting layout.frame_rate to zero and it really killed performance.
Changing DEFAULT_RECOMPUTE_VISIBILITY_INTERVAL_MS only affects the active tab, so making it slower probably will adversely affect some pages. See https://bugzilla.mozilla.org/show_bug.cgi?id=1169880

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions