Live data from Hacker News

Show HN: First person 3D environment using CSS 3D Transforms for rendering

affectionate-minsky-072f4c.netlify.com

1–10 of 26 posts

Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering

#7
post #2

Pretty cool, it seems to use the DOM directly instead of a element, amazing it can perform as well as it does with constant css and element manipulation (notoriously slow) I like that there's collision detection too!

Element manipulation is normally slow because of layout computations, but explicit transforms remove the element from the layout flow (it doesn't affect nor get affected by the sizing and content of other elements), cutting nearly all of that cost. Also, in most browsers explicit transforms get computed on the GPU.

So for this type of case there isn't nearly as much going on between the DOM and the raw graphics code as you might think

Post reply on HN