Whether OffscreenCanvas faster than the usual hidden Canvas?

Now is the main canvas (the scene) and a few auxiliary canvases hidden outside of sight.
With the help of the timer that starts the rendering of frames in each secondary canvas and then they are superimposed in a given order on the main canvas creating an animated composition.
Will there be faster if you replace the usual (which is hidden) on OffscreenCanvas, as well taking out after drawing the frame normal to the main canvas?
April 19th 20 at 12:12
2 answers
April 19th 20 at 12:14
Solution
It is for this and created.
Usually for worker s working in the background when rendering.
and if the main thread will have a visible effect on the speed? because the animation has to be synchronous and dependent on each other strictly in the frames. - tiana47 commented on April 19th 20 at 12:17
@tiana47, so do the entire render in off and visible - print ready. Sync make the frame visible in the canvas.
You're in HR in any output. - earline81 commented on April 19th 20 at 12:20
@earline81, well, there in fact will be of little avail from a separate thread, because if a worker with a render will crash for example, then the sense of free from the main thread will not be there, too, not to draw a frame until the worker is not rendered and will not go into the main canvas.
So interesting to compare in the main thread a normal canvas and canvas offscreen :) - tiana47 commented on April 19th 20 at 12:23
@tiana47that bothers to protest? ;) - earline81 commented on April 19th 20 at 12:26
@earline81, but thought maybe it's someone already checked and already have accurate data on its superiority in speed :) - tiana47 commented on April 19th 20 at 12:29
@tiana47, the logic - just extra canvas in copy normal, but with a different name - would not do) - earline81 commented on April 19th 20 at 12:32
@earline81, found of the answer to this question) said that even in the main thread it 50% faster
5e98612b30682445710518.png - tiana47 commented on April 19th 20 at 12:35
@tiana47, well, he is the test?) - earline81 commented on April 19th 20 at 12:38
April 19th 20 at 12:16
Solution
even in the main thread? because it indicates that it can be used with both the worker and main thread - tiana47 commented on April 19th 20 at 12:19
@tiana47, well, in articles it is written like - rhett_Cummerata commented on April 19th 20 at 12:22

Find more questions by tags HTMLJavaScript