Closed lambdalisue closed 8 years ago
Nice catch! I didn't know the 'alpha' option.
I tried this patch. Although I couldn't see the difference, I believe dropping alpha will improve rendering. This patch will be included in v0.8.1.
Although I couldn't see the difference
Hum... Well at least NyaoVim in Ubuntu 15.04 Gnome shell showed huge difference :+1:
Anyway thanks a lot! :tada:
I think it's because I'm using thick font. Anyway, your screenshots show the improvement and there is no disadvantage :+1:
Now browser knows that the backdrop for drawing is always opaque, the performance of drawing of transparent content and images are improved.
Additionally, at least Webkit, browser renders text with sub-pixel anti-aliasing so that the quality of readability increase a lot.
http://blogs.adobe.com/webplatform/2014/04/01/new-canvas-features/ https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext
I confirmed by
$ npm start
Without
{alpha: false}
With
{alpha: false}