heyzxz Posted December 10, 2016 Share Posted December 10, 2016 Hi there, According to this: https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/babylon.shaderMaterial.ts#L163-L217 I think the ShaderMaterial is doing the full 'Ready checking' every frame, and I'm just wondering why didn't use the '_wasPreviouslyReady' flag just like other materials (standard, PBR) did to make it possible to skip the full ready checking ? if (this.isFrozen) { if (this._wasPreviouslyReady) { return true; } } Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 10, 2016 Share Posted December 10, 2016 You can test you suggestion on your local machinehttps://doc.babylonjs.com/generals/how_to_start And then make a pull request on github. write a short note, and then it will be merged within few hours! https://github.com/BabylonJS/Babylon.js/tree/master/src GameMonetize and Sebavan 2 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.