Jump to content

Problem with performance - control over drawing a large number of elements


hypothermi
 Share

Recommended Posts

Hey,
I have "the game" with very more elements (Box) and i have problem with performance. Amount of FPS is very low (~15-20) for 16k elements in map (isometric mesh with box as single tile), but I do not need this all elements and my question is: how to control it? Is there any method in which I can give information which currently elements should I display? Method for a single frame?

Link to comment
Share on other sites

Please help us by making a demo playground about the map creation part. ?

You can quickly speed up FPS using mesh instances instead of clones. Especially if you only have a limited number of different isometric meshes / tiles. (Say 256 tiles / 8bit tilemap).

I used this instantiating trick for the (thousands of) railway track sleepers in my BabylonJS Model Train Simulator. Made a huge difference in performance.

Q

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...