Hacker News new | ask | show | jobs
by shultays 4028 days ago
I don't know much about html, what do you do in html for GPU acceleration? Is not it enabled by default? Or there are some things that the programmer should be aware of that highly impacts rendering due to GPU?
1 comments

This refers to a technique where each item is rendered on a different layer in the page. Because of that, when moving an item to a new position it does not require 'painting' the affected area. There are some style attributes that causes the browser to create new layer for the HTML element like 'translate3d'. Tests proves that browser uses GPU for Compositing these layers which is a lot faster when the CPU does this job. explained here more briefly: https://www.chromium.org/developers/design-documents/gpu-acc...