Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Add editor.useHardwareAcceleration option to allow React editor to not use GPU layers - #2789

Merged
nathansobo merged 4 commits into
masterfrom
ns-react-disable-gpu-option
Jul 1, 2014
Merged

nathansobo merged 4 commits into
masterfrom
ns-react-disable-gpu-option

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

The following issues fixed by this PR have to do with using the GPU for rendering.

  • Fixes Colors are off (or different?) in the React editor #2511. Font rendering is a bit different on OS X when the GPU is employed due to issues with subpixel anti-aliasing, so this allows it to be disabled at the cost of performance if the user truly can't stand it. If we get a lot of complaints, we may want to auto-disable the GPU on non-retina displays.
  • Fixes Scroll jitter in React editor #2769. It seems like there are bugs on Linux with certain graphics drivers. A quick workaround is just disabling the GPU entirely. Hopefully these issues will be addressed as Chromium evolves.

gpu-disabled

When gpuDisabled is true, we use `translate` instead of `translate3d`
to position various elements, preventing the creation of GPU layers.
@benogle

benogle commented Jul 1, 2014

Copy link
Copy Markdown
Contributor

I think this should be renamed to something like editorUsesGpu or editorHardwareAccelerated. gpuDisabled makes it sound like you are disabling the gpu altogether.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@benogle Word. I changed it to editor.useGPU, which defaults to true.

@benogle

benogle commented Jul 1, 2014

Copy link
Copy Markdown
Contributor

My issue with it is the general-ness. I think we should mention editor somewhere in it. I would be nervous to untick that box. Are we going to use it for other things?

@nathansobo

Copy link
Copy Markdown
Contributor Author

@benogle It's in the editor section and is prefixed with the editor key.

@benogle

benogle commented Jul 1, 2014

Copy link
Copy Markdown
Contributor

Ah, spacing on looking at the image

@nathansobo

Copy link
Copy Markdown
Contributor Author

@benogle I went ahead and renamed it to useHardwareAcceleration to minimize jargonness.

nathansobo pushed a commit that referenced this pull request Jul 1, 2014
Add editor.gpuDisabled option to prevent React editor from using layers
@nathansobo
nathansobo merged commit 8b57bb3 into master Jul 1, 2014
@nathansobo
nathansobo deleted the ns-react-disable-gpu-option branch July 1, 2014 18:48
@nathansobo nathansobo changed the title Add editor.gpuDisabled option to prevent React editor from using layers Add editor.useHardwareAcceleration option to allow React editor to not use GPU layers Jul 1, 2014
@ronjouch

Copy link
Copy Markdown

I'm in a nVidia driver hell since upgrading to Ubuntu 15.04, and though Chrome's --disable-gpu does prevent it from crashing my whole system, Atom's (0.194) editor.useHardwareAcceleration doesn't, ending in a rather painful way: cursor jitter, screen flickering, regular keyboard/mouse input loss, impossible to switch to a non-X tty → restart with REISUB.

@nathansobo, is there a way to be more drastic about disabling gpu acceleration like the Chrome flag does? I'll be glad to provide debug info.

@oraculus

oraculus commented Jun 3, 2015

Copy link
Copy Markdown

+1 to this, please! Linux bug here, and is more annoying that just "scroll jitter"...

@Juwdohr

Juwdohr commented May 28, 2017

Copy link
Copy Markdown

Is this option available in the windows version?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scroll jitter in React editor Colors are off (or different?) in the React editor

5 participants