Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-01-2010, 08:28 AM   #3 (permalink)
warmi
Registered Member
 
Join Date: Nov 2008
Posts: 234
Default

Quote:
Originally Posted by demione View Post
I have a series of low poly models (~20 triangles each, 100 of them on the screen at a time). They are not interconnected, so drawing them all at one time with GL_TRIANGLE_STRIP is not an option.

My two options as I see it are to either put all 100 models' vertex, normal, and color data into a big interleaved array and draw them using one DrawElements() call using GL_TRIANGLES. Alternatively, I can construct a strip-ordered interleaved array to contain the data for one model, and use this array to draw each model over and over again in a for loop by calling DrawElements() 100 times using GL_TRIANGLE_STRIP.

Which one is faster on the iPhone?
Yeah, the only sane way of handling this setup is to transform vertices on the CPU and submit them with a single interleaved array.
warmi is offline   Reply With Quote
 

» Advertisements
» Online Users: 272
16 members and 256 guests
ADY, ckgni, her-ur, imehl, IphoneSdk, iph_s, jakerocheleau, karunaskj, MarkC, marshusensei, peterkessler45, rodrigozanatta, Rudy, Speed, Xaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,218
Posts: 380,695
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.