A
A
Alex2020-04-15 21:48:28
JavaScript
Alex, 2020-04-15 21:48:28

Will OffscreenCanvas be faster than a hidden regular Canvas?

Now there is a main canvas (scene) and several auxiliary canvases hidden and out of sight.
With the help of a timer, frames are drawn in each auxiliary canvas and then they are superimposed on the main canvas in a given order, forming an animation composition.
Will it be faster if you replace the regular canvases (which are hidden) with OffscreenCanvas, also taking the frame from there to the regular main canvas after drawing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-04-15
@alexjet73

This is exactly what it was created for.
Usually - for workers working in the background when rendering.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question