[SOLVED]How to set the fps in B4W
25 July 2017 18:34
25 July 2017 19:06
Here is a post by Evgeny.
If I understand correctly, you set the FPS in Blender and it affects only the animation speed, not the rendered frames per second.
If I understand correctly, you set the FPS in Blender and it affects only the animation speed, not the rendered frames per second.
26 July 2017 05:08
26 July 2017 05:56
You can control the animations by setting the frame rate in Blender. This will determine how fast your animation plays in Blend4Web. The actual refresh rate is determined by how fast your device can process the scene. So if your application is bogging down on some devices the only solution is to lighten the processing burden on the device. There are a number of things you can do to optimize your project. Using the asset conversion ability in your Project Manager can help. (You might check out this post.)
26 July 2017 10:16
26 July 2017 10:36
Hi berdon,
there's the method set_fps_callback. The callback executes every frame and gives you the actual fps value:
there's the method set_fps_callback. The callback executes every frame and gives you the actual fps value:
var m_main = require("main");
m_main.set_fps_callback(function(fps_avg, phy_fps_avg) {
console.log("current fps is", fps_avg);
});
26 July 2017 12:04
Reply to post of user Ivan Lyubovnikovwow, I get it. Thanks, Ivan. And another question, can the fps be set?
Hi berdon,
there's the method set_fps_callback. The callback executes every frame and gives you the actual fps value:var m_main = require("main"); m_main.set_fps_callback(function(fps_avg, phy_fps_avg) { console.log("current fps is", fps_avg); });
26 July 2017 12:12