Jump to content

GUI controls limits


phaselock
 Share

Recommended Posts

Hi again ! So with the recent fix on executeOnAllControls, I wanted to push the boundaries but hit a wall almost immediately. Not entirely sure which is the culprit here but I repro'ed in PG: https://www.babylonjs-playground.com/#XCPP9Y#581

On my screen, the perf is still fairly smooth with 100 textblocks. If I set it to 1000 in the for loop, the pg slows down incredibly. Is this the case for html5 ? I'm just curious where the bottleneck might be and how can I still obtain smooth redraw past 1000 gui elements ?

Link to comment
Share on other sites

Well, first question is: Why do you need to do that update once per frame? Obviously updating 1000 controls per frame will suck the perf :)

Link to comment
Share on other sites

@Deltakosh yeah agreed, i was really hoping not to have to update per frame. My use case is for visualizing/debugging an elevation map (eg: http://maps-portland.com/img/0/elevation-map-of-portland-oregon.jpg ). Instead of showing 1 label on mouse-over, I wanted to show more data with box selection. Maybe I'll try smthg else, thanks.

@brianzinn that's nice, thanks for the effort ! Works ok on my browser but I really wanted to get similar perf to typical html5 on slower systems.

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