mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js/ui: Use Clutter.OffscreenRedirect.ON_IDLE
To bypass offscreening in cases where continuous animation is happening. Offscreening is slower in such cases so this reduces the render time of animations within offscreenable actors. On an i7-7700 this reduces the render time of boxpointers for example by 25-30%. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1025
This commit is contained in:
parent
e938986a74
commit
c0c027c608
5 changed files with 5 additions and 5 deletions
|
|
@ -353,7 +353,7 @@ var Dash = GObject.registerClass({
|
|||
clip_to_allocation: true });
|
||||
this._box._delegate = this;
|
||||
this._container.add_actor(this._box);
|
||||
this._container.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
|
||||
this._container.set_offscreen_redirect(Clutter.OffscreenRedirect.ON_IDLE);
|
||||
|
||||
this._showAppsIcon = new ShowAppsIcon();
|
||||
this._showAppsIcon.show(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue