royibernthal Posted September 5, 2018 Share Posted September 5, 2018 I have a shader which is really slow on mobile - is it possible to use SpectorJS or another tool (let's say even on desktop) to find the problematic part of the shader code that is heavy on performance? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 5, 2018 Share Posted September 5, 2018 I think so as it will show you the code and all parameters. You can edit the shader live so it will help you create a smaller shader (but no profiling unfortunately) Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 6, 2018 Author Share Posted September 6, 2018 Oh, so I meant profiling Anything for that? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted September 6, 2018 Share Posted September 6, 2018 i like work on heavy shader if you intersted Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 7, 2018 Author Share Posted September 7, 2018 Of course Here's a repro in a PG: http://www.babylonjs-playground.com/#3B5YN6#3 It should be laggy on mobile - if it's not, you can easily add more models in assetsManager.onFinish. Any ideas for how to improve performance? Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 7, 2018 Author Share Posted September 7, 2018 In the actual project, textures on mobile are already optimized to 256 instead of 1024, it didn't seem to help. 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.