⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264015 in webkit


Ignore:
Timestamp:
Jul 7, 2020, 6:56:37 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] WebProcess hangs when browsing GitHub
https://bugs.webkit.org/show_bug.cgi?id=213970

Reviewed by Sergio Villar Senin.

Use a lower priority for LayerFlushTimer and DisplayRefreshMonitorTimer. We were using a very high priority for
drawing with the idea of keeping a good rendering performance without being affected by other timers. The
problem is that animations can be controlled by timers, so we need to ensure that MainThreadSharedTimer has
higher priority than drawing.

  • wtf/glib/RunLoopSourcePriority.h: Use 110 for LayerFlushTimer and DisplayRefreshMonitorTimer.
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r263981 r264015  
     12020-07-07  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] WebProcess hangs when browsing GitHub
     4        https://bugs.webkit.org/show_bug.cgi?id=213970
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Use a lower priority for LayerFlushTimer and DisplayRefreshMonitorTimer. We were using a very high priority for
     9        drawing with the idea of keeping a good rendering performance without being affected by other timers. The
     10        problem is that animations can be controlled by timers, so we need to ensure that MainThreadSharedTimer has
     11        higher priority than drawing.
     12
     13        * wtf/glib/RunLoopSourcePriority.h: Use 110 for LayerFlushTimer and DisplayRefreshMonitorTimer.
     14
    1152020-07-06  Geoffrey Garen  <ggaren@apple.com>
    216
  • trunk/Source/WTF/wtf/glib/RunLoopSourcePriority.h

    r263723 r264015  
    3636// We don't use those macros here to avoid having to include glib header only
    3737// for this. But we should take into account that GLib uses G_PRIORITY_DEFAULT
    38 // for timeout sourcea and G_PRIORITY_DEFAULT_IDLE for idle sources.
     38// for timeout sources and G_PRIORITY_DEFAULT_IDLE for idle sources.
    3939// Changes in these priorities can have a huge impact in performance, and in
    4040// the correctness too, so be careful when changing them.
     
    6262
    6363    // Layer flush.
    64     LayerFlushTimer = -100,
     64    LayerFlushTimer = 110,
    6565
    6666    // DisplayRefreshMonitor timer, should have the same value as the LayerFlushTimer.
    67     DisplayRefreshMonitorTimer = -100,
     67    DisplayRefreshMonitorTimer = 110,
    6868
    6969    // Rendering timer in the main thread when accelerated compositing is not used.
Note: See TracChangeset for help on using the changeset viewer.