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, 03:36 PM   #11 (permalink)
warmi
Registered Member
 
Join Date: Nov 2008
Posts: 234
Default

Quote:
Originally Posted by demione View Post
Interesting. I had read somewhere that multiple draw calls did not seem to affect performance but this definitely points to the contrary.

I see you've ignored the suggestion about aligning your vertex structure row length to a multiple of 8 bytes. Wondering what your results would be like if you manage to somehow cut those 20 bytes down to 16 (or better yet, pad with 4 to make it 24).
Why multiple of 8s ? 4s is plenty since that's what ARM operates with - if you really want to be cache friendly you would have to align your entire vertex struct to be 32 bytes exact.

As far as multiple draw calls - of course it does ... even if you are just doing simply glDrawArrays in a loop it still makes a lot of difference but if you take into account the fact that a typical engine ( as opposed to some lean demo code) will attempt to do a lot more then just call glDrawArrays for each renderable batch - it becomes even more important.
warmi is offline   Reply With Quote
 

» Advertisements
» Online Users: 341
13 members and 328 guests
ADY, antonwilliams, dcool, Desert Diva, HemiMG, jakerocheleau, leahov, michelle, MozyMac, nobre84, smithdale87, thh022, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,721
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 10:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.