Author Topic: NGUI vs UGUI for VBO (Vertex Buffer Object)  (Read 3298 times)

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
NGUI vs UGUI for VBO (Vertex Buffer Object)
« on: April 08, 2015, 10:56:16 AM »
For updating VBO (Vertex Buffer Object), NGUI use BetterList, UGUI use ObjectPool<List<UIVertex>>, which one is better in term of performance ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vs UGUI for VBO (Vertex Buffer Object)
« Reply #1 on: April 09, 2015, 03:35:30 PM »
No idea. I have no experience with ObjectPool.

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Re: NGUI vs UGUI for VBO (Vertex Buffer Object)
« Reply #2 on: April 11, 2015, 09:44:30 AM »
Will NGUI's BetterList recycle VBO instead of allocate more ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vs UGUI for VBO (Vertex Buffer Object)
« Reply #3 on: April 12, 2015, 04:36:44 PM »
UIDrawCall recycles buffers if possible.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI vs UGUI for VBO (Vertex Buffer Object)
« Reply #4 on: April 18, 2015, 05:36:07 PM »
Best thing to do is test it. Set up an elaborate test case with both tools, and measure with Stopwatch https://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch%28v=vs.110%29.aspx

  1. var stopwatch = System.Diagnostics.Stopwatch.StartNew();
  2.  
  3. // Do something
  4.  
  5. // Stop timing
  6. stopwatch.Stop();
  7. //print results
  8. Debug.Log("time: " + stopwatch.ticks);
  9.