Force editor layer for faster paint. #11267

Closed
marijnh wants to merge 1 commit from github/fork/Tihauan/perf/editor-layer into master
marijnh commented 2016-07-12 20:32:28 +02:00 (Migrated from gitlab.com)

Implement the layer separation suggested in [1] to reduce the print area when scrolling. The editor will get its own GPU accelerated layer [2]. It applies to Chrome/WebKit.

Before
before

After
after

[1] Tricks for high performance scrolling
[2] Accelerated Rendering in Chrome

Implement the layer separation suggested in [1] to reduce the print area when scrolling. The editor will get its own GPU accelerated layer [2]. It applies to Chrome/WebKit. Before ![before](https://cloud.githubusercontent.com/assets/284743/16778483/7f2fe2d4-486e-11e6-839a-323c8072704c.PNG) After ![after](https://cloud.githubusercontent.com/assets/284743/16778503/920c3394-486e-11e6-84e9-73e368b2440b.PNG) [1] [Tricks for high performance scrolling](https://groups.google.com/forum/#!searchin/codemirror/translate3d/codemirror/kQirncJtBjI/rdzEf1zOeRwJ) [2] [Accelerated Rendering in Chrome](http://www.html5rocks.com/en/tutorials/speed/layers/)
marijnh commented 2016-07-19 09:47:31 +02:00 (Migrated from gitlab.com)

This will disable editor's subpixel anti aliasing.

This will disable editor's subpixel anti aliasing.
marijnh commented 2016-07-19 10:10:45 +02:00 (Migrated from gitlab.com)

That's definitely a downside. And there are other invasive effects from applying transforms. Since this is easy enough to enable with a custom CSS rule if you really want it, I think I'd prefer not to merge this.

That's definitely a downside. And there are other [invasive effects](https://github.com/codemirror/CodeMirror/issues/3238#issuecomment-175849461) from applying transforms. Since this is easy enough to enable with a custom CSS rule if you really want it, I think I'd prefer not to merge this.
marijnh commented 2017-01-03 23:16:51 +01:00 (Migrated from gitlab.com)

Closing until further notice.

Closing until further notice.
marijnh (Migrated from gitlab.com) closed this pull request 2017-01-03 23:16:51 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5!11267
No description provided.