D
D
Drovosek012019-03-09 20:32:35
Canvas
Drovosek01, 2019-03-09 20:32:35

On what (due to what) is html rendered? Why svg is not rendered by graphics card?

Watched the HTML5 vs Qt video and heard that it says that a Qt interface is rendered using OpenGL, while an interface made with Html5 is rendered on the CPU (and maybe only some parts of it are rendered on OpenGL).
I also heard somewhere that svg is also rendered "on the processor", but canvas - on the video card.
Maybe I misunderstood something, but if what I wrote is really true, then why is it so? After all, all the graphics are processed by the video card, sort of like ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mikhail Osher, 2019-03-10
@Drovosek01

In addition to sim3x 's answer, google "web hardware acceleration".
By default, everything goes through the CPU. You can enable the GPU for some elements.

S
sim3x, 2019-03-09
@sim3x

Only a small part of the rendering of the page is transferred to the video card
Most of the things are rendered on the CPU
Roughly speaking, the CPU generates the site at full height, and then the video card determines what to show in the
viewport years ago) she would have replaced the entire css3 and would have done everything very nicely. Much cooler than everything is now
But no one wanted to cut it

A
asd111, 2019-03-10
@asd111

Browsers also use OpenGL or Directx or whatever. GPU. It's just that they can run on both the CPU and the GPU.
In your video, the Qt marketer had to be told that qt is faster than html 5 and he came up with such a reason.
https://youtu.be/w8lm4GV7ahg?t=4m54s
This is a video that explains in detail how the page is drawn in Chrome.

J
Jacob Holus, 2019-03-09
@artemkotok

The entire web is fully rendered on the CPU

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question