Author Topic: Perf problems for panel with many labels...  (Read 1413 times)

rs1

  • Guest
Perf problems for panel with many labels...
« on: November 12, 2012, 07:01:37 PM »
I've got a large chamber filled with plaques.  To boost performance I move the plaque labels (a single label for each plaque, 1-2 words) to a global panel.  This gets me the batching I'm looking for, but there's a problem.  The late update on the panel and label widgets is taking a big chunk of the frame.  I've got 400 labels and am hoping for more but maybe this is too many?  The global panel and labels are marked static yet LateUpdate is doing lots of work each frame.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Perf problems for panel with many labels...
« Reply #1 on: November 12, 2012, 07:23:25 PM »
If you've marked the panel as static, it shouldn't take any time at all as it simply ignores all changes.

I suggest you look closer at which panel is responsible for drawing your widgets. Select one of your widgets with the Panel Tool open, it will highlight the panel for you. Make sure it's what you think it is.

1 or 400 doesn't matter since they all get batched into one draw call -- which (assuming the panel's "Is Static" flag is 'true') never changes.