Welcome,
Guest
. Please
login
or
register
.
October 03, 2024, 10:02:15 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
NGUI vs UGUI for VBO (Vertex Buffer Object)
« previous
next »
Print
Pages: [
1
]
Author
Topic: NGUI vs UGUI for VBO (Vertex Buffer Object) (Read 3298 times)
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
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 ?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
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.
Logged
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
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 ?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: NGUI vs UGUI for VBO (Vertex Buffer Object)
«
Reply #3 on:
April 12, 2015, 04:36:44 PM »
UIDrawCall recycles buffers if possible.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
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
var
stopwatch
=
System.
Diagnostics
.
Stopwatch
.
StartNew
(
)
;
// Do something
// Stop timing
stopwatch
.
Stop
(
)
;
//print results
Debug
.
Log
(
"time: "
+
stopwatch
.
ticks
)
;
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
NGUI vs UGUI for VBO (Vertex Buffer Object)