Skip to content

Commit ae41e0f

Browse files
author
Michael Johnston
committed
Scrolling performance improvements
- Avoid overly aggressive backing store purge on unmount - Avoid possible 2 draw calls in a single frame
1 parent e4a50ce commit ae41e0f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/LayerMixin.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ var LayerMixin = {
8181
},
8282

8383
unmountComponent: function() {
84-
// Purge backing stores on unmount.
85-
var layer = this.node;
86-
if (layer.backingStoreId) {
87-
DrawingUtils.invalidateBackingStore(layer.backingStoreId);
88-
}
8984
this.destroyEventListeners();
9085
}
9186

lib/Surface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ var Surface = React.createClass({
145145
// Execute pending draw that may have been scheduled during previous frame
146146
this._frameReady = true;
147147
if (this._pendingTick) {
148-
this.tick();
149148
this._pendingTick = false;
149+
this.batchedTick();
150150
}
151151
},
152152

0 commit comments

Comments
 (0)