Jump to content

The performance issue when many lights in scene.


clong365
 Share

Recommended Posts

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?

screenshot_-9-4_10-12.thumb.png.0f47b4fc5b4712c6a35c5949faead55c.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...