reddozen Posted October 14, 2015 Share Posted October 14, 2015 Seems to be a little process heavy demo... looks like I won't be using lense flares in my game... lol Samsung Note4 - Lense flare demoFireFox: 21~30 FPS fluxuatingChrome: steady 30 FPS Work Issue Laptop (Not great) - Lense flare demoFireFox: 50~60 FPS Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 14, 2015 Share Posted October 14, 2015 flares require a lot of additional work Quote Link to comment Share on other sites More sharing options...
KosLooney Posted October 14, 2015 Share Posted October 14, 2015 With your latest changes I got pretty big speedup - from 5 to ~25fps but still, when I remove skybox from scene I'm getting 60fps.And I was trying all kinds of reflectionTexture.coordinatesMode (Texture.CUBIC_MODE too - in this case viewdir was used I guess ?!)Anyway, its still unusable for me so I guess I'll use layer as a background image for current project. Do you have lighting enabled or disabled on your skybox material?On my iPad3 i get 60 FPS on the PG environment demo: http://www.babylonjs-playground.com/?13 .When i enable lightting (skyboxMaterial.disableLighting = false;) it crashes down to ~20 FPS Quote Link to comment Share on other sites More sharing options...
gamestudiohx Posted October 15, 2015 Author Share Posted October 15, 2015 Wooow... you just saved my project This brings 60fps back to my game. Thank you @KosLooney !I would never have thought of that... Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted October 19, 2015 Share Posted October 19, 2015 Hmmm, it's great to have improved the shader, but now we have something which doesn't work anymore. With the new shader version, the bump doesn't influence correctly the reflection anymore...The more powerfull the reflection is (via level or fresnel), the less the bump texture has influence on it, and that is a wrong behavior. DK, do you think you'll be able to keep your optimisation while still having bump acting correctly ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 19, 2015 Share Posted October 19, 2015 Yes...I'll find a way Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 19, 2015 Share Posted October 19, 2015 Ok I think I nailed it can you try now? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted October 19, 2015 Share Posted October 19, 2015 Yeaaah!! Everything went back to normal.You're the boss!! Many thanks. 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.