I
I
ixon2018-08-10 10:34:44
JavaScript
ixon, 2018-08-10 10:34:44

What is better to use to create an interface: Canvas, WebGL or DOM?

What will work faster as a user interface?
DOM is more native to the browser, which means that every browser has some features that allow DOM elements to work faster.
WebGL is more native to the video card, which means it will interact more efficiently with the video card.
Canvas is obviously far less efficient than WebGL, but how much worse or better is it than DOM?
So which of these tools will be the fastest and which one will be more efficient for writing a web application interface?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2018-08-10
@Vlad_IT

Write the interface for a web application in the DOM with icons in SVG. You will write on the chart, you will be tormented with handling clicks, with the states of elements, with caching of heavy components during redrawing, with scaling, etc. There will be many problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question