R
R
RoflanDaniil2017-11-18 16:19:10
JavaScript
RoflanDaniil, 2017-11-18 16:19:10

Tree.js breaks down into workers? If not, why do I have all cores loaded?

I ran this example - helloracer.com/webgl
I don't see any explicit division into workers, but the game loads all 8 cores by 35% approximately.
How can this be?
I assume that the browser can transfer data to shaders in parallel, managing not to violate the principle of 1 event loop per 1 thread. But it is not exactly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
svaa1982, 2017-11-26
@RoflanDaniil

There are no workers in three.js, the multiprocess browser itself can split some of the work into processes, but I won’t say why all 8 cores are evenly loaded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question