PhilT Posted March 11, 2018 Share Posted March 11, 2018 The playground http://www.babylonjs-playground.com/#CGSXR from http://doc.babylonjs.com/samples/grid_moves runs at 10fps on my Razor Blade laptop with nVidia GTX 1060. Is that normal? Quote Link to comment Share on other sites More sharing options...
jerome Posted March 11, 2018 Share Posted March 11, 2018 Actually this (JohnK's ?) PG is CPU intensive as it computes intersections between all the bouncing balls Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 11, 2018 Share Posted March 11, 2018 @PhilT welcome to the forum from me. The Gamelets are starting points for ideas using Babylon.js and as such were written as explorations and are about potential rather than efficiency and effectiveness. As Jerome said the PG is CPU intensive and time is of the order(N*N) where N is the number of balls, so for time of order 4 000 000 perhaps 10fps is not too bad for a start. Quote Link to comment Share on other sites More sharing options...
onlycape Posted March 11, 2018 Share Posted March 11, 2018 In my old Athlon x2 with the GTX 650, it runs at 4fps (with 2000 particles, which are a lot ). With less than 200 particles I can get 60fps, and with 400, 30fps. But as you have already been told, the trigonometric calculations of the intersections consume a lot of CPU time. It seems totally normal to me. Quote Link to comment Share on other sites More sharing options...
PhilT Posted March 11, 2018 Author Share Posted March 11, 2018 Thanks for the welcome, John And thanks very much for the responses. Yeah, those are some big numbers! Good to know others are seeing similar performance. I'm still experimenting with BJS and trying to get a sense of what could be achieved and what the limits are. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.