Hello,
there was a cpu load post.
Im evaluating webgl frameworks for some projects and Ive noticed a much higher CPU load for babylon.js demos than three.js demos, even ones that arent updating anything! Even the basic scene in the playground is running at 40% CPU, nothing moving, in...
when these said 0.5 to 3% cpu load about below sample,
https://www.babylonjs-playground.com/frame.html?noui#PPC2HF
but with my macbook air and chrome
processor : 1.7 GHz Intel Core i7
memory: 8GB 1600 MHz DDR3
graphic: Intel HD Graphics 5000 1536 MB
macOS Mojave: 10.14.2
uses about 20% cpu (system: 7.56%, user: 15.89%)
and there is slightly usage of gpu graphic history
(sorry for my os language setting)
https://drive.google.com/open?id=1Bw2SCBzzAbgPZ96RsWOwK6yIxZgvi3SR
this is normal state (system 3.09%, user 3.93%)
https://drive.google.com/open?id=1Z-riAQQqpkhr4j-EZyy41eUzP_O0heir
above samples uses just 20% but, my application uses 50% or more
what is check point for my environment?
thanks
jerome
December 21, 2018, 9:36am
2
Making comparisons of different things is not pertinent imho.
When you use the PG site, there are plenty of processes running behind the scene.
Moreover, BJS and 3J have different default settings about the lights/materials, the environment, the culling process, etc.
You have to set the very same values everywhere to make a pertinent comparison.
Hello
ThreeJS is not for me.
just commented older similar thread.
Iām curious whether it has different result between now and the past
or because of my computing spec.
thanks.
sebavan
December 21, 2018, 12:40pm
4
I double checked and nothing strange is showing up in the perf analyser
Can you run a profile and check which functions are eating your CPU time?
Something like that (from my computer):
Please go to Babylon.js Playground to get a precise test
Looking down the self time column. An anonymous function which you wrote is the largest single piece of 11.9.
You should take at the function at line 589 in index.js. Maybe break it out into some smaller functions to get more fine grained.
1 Like