Quantcast
Viewing all articles
Browse latest Browse all 760

Demo FPS 20fps while potential FPS 60fps

Running the instance Demo both from the babylonjs.com website and locally:

I see potential FPS in debug overlay showing ~60 FPS.

Actual FPS is ~15 FPS.

I tested this in both Chrome and Firefox on both Linux and OSX.

I tried removing various parts of the code. Reducing instance count to 10, removing collision tests from all objects. The FPS rises somewhat but the problem persists.

I tried checking out the v2.5.0 tag in case something in latest was causing the problem. The problem persists.

I think this may be due to BabylonJS depending soley on requestAnimationFrame for update/draw logic (which creates several problems actually, but I created a separate post to address that). I assume there must be something wrong in the update logic, but I am new to BabylonJS.

 

Is anyone else seeing a low FPS number on the babylon website?

 

 

See attached screenshot where render and frame are only 5ms and 8ms (potential FPS is 128) yet FPS is only 40!

Image may be NSFW.
Clik here to view.
babylon-fps-bug.png


Viewing all articles
Browse latest Browse all 760

Trending Articles