clong365 Posted September 4, 2017 Share Posted September 4, 2017 I have a scenario, there are about 5 hundred lights on the airport runway. I have reported the issue in github. https://github.com/BabylonJS/Babylon.js/issues/2721 The Babylonjs team fixed it in the preview release. I used the fixed version. Now the engine can render hundreds lights, but the performance is a big problem. How could I implement the scene like this in right way? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 4, 2017 Share Posted September 4, 2017 Hello This is expected. For realtime rendering you should not have more than 4 or 5 dynamic lights per mesh. What I suggest here: You should play with light.includedMeshOnly array. Just add meshes to the correct lights depending on distance for instance. Keep in mind that 4 or 5 lights should be the maximum Quote Link to comment Share on other sites More sharing options...
clong365 Posted September 5, 2017 Author Share Posted September 5, 2017 Finally I implement it with HighlightLayer as a workaround. Thank you for your reply GameMonetize 1 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.