ian Posted January 16, 2018 Share Posted January 16, 2018 Hi, I have code function getDeltaTime() { if(scene) { return scene.getLastFrameDuration() / 1000; } return 0; } I add new BabylonJS version in project Babylon.js engine (v3.2.0-alpha3) launched and I get messagegetLastFrameDuration is deprecated. Please use SceneInstrumentation class How can I replace/fix this code? Any advice? Greetings, Ian Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 16, 2018 Share Posted January 16, 2018 This might help. If you instance a SceneInstrumentation class, passing the scene as arg, you might then call a number of its methods in either your render loop or maybe afterrenderer. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 16, 2018 Share Posted January 16, 2018 More details: http://doc.babylonjs.com/how_to/optimizing_your_scene#instrumentation Quote Link to comment Share on other sites More sharing options...
ian Posted January 18, 2018 Author Share Posted January 18, 2018 answer without reply 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.