S
S
Sergey Minakov2020-03-29 17:36:09
JavaScript
Sergey Minakov, 2020-03-29 17:36:09

How can I speed up rendering on canvas?

I am learning ray marching technology and writing a small web project. When it comes to rendering a full hd image, the page freezes for about 20 seconds, which is a lot. How can you increase the rendering speed, and do it, as in other 3D engines for the web, where fractions of a second take 1 frame?

If you need code, then it is on github

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2020-03-29
@cergmin

Because you draw on the CPU, so everything is slow. You need to draw on the GPU using WebGL shaders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question