Author Topic: DragablePanel&Content (scrollable list) draw calls  (Read 1897 times)

drekoo

  • Guest
DragablePanel&Content (scrollable list) draw calls
« on: September 25, 2012, 04:55:29 PM »
Hi, I have implemented soft clipped listbox & scrollbar with 500 items, everything is ok,
there are around 15 UILabel items visible on the list and stats shows around 300 drawn triangles,
but when scrollbar value changes it seems that all the items ( 10k triangles) are drawn for around 500ms and
after that time stats again shows 300 triangles for 15 visible items. It seems that there is a bug in "rendering flow"?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: DragablePanel&Content (scrollable list) draw calls
« Reply #1 on: September 25, 2012, 06:46:52 PM »
It's no bug, it's by design. When the panel starts moving, the buffer is filled with everything. When the panel stops moving, culling happens and items that aren't visible are removed.