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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-16-2010, 10:39 AM   #2 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Whichever method has the fewest number of calls to glDrawArrays or glDrawElements should have the better performance, and whichever method has the fewest calls to glBindTexture.

I don't know what renderSubImageAtPoint looks like, but I assume it calls both glBindTexture and glDrawArrays; in that case you probably won't see much difference between these three methods.

In the long term, a single image with all of the textures has the biggest chance of speedup in the future. With a single texture it's possible to batch all of your sprites together to draw all or most of them with a single call to glDrawArrays. That would give you a tremendous speedup. You'd probably have to rewrite your drawing class, though.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 349
12 members and 337 guests
AdamL, baja_yu, bignoggins, deloisig73, Duncan C, HemiMG, heshiming, hussain1982, ilmman, jbro, krisk, mediaspree
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,558
Threads: 94,079
Posts: 402,741
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Garros1990
Powered by vBadvanced CMPS v3.1.0

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