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 > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2010, 04:24 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1
JPvdB is on a distinguished road
Default Texture performance

Hello,

I am new to iPhone development. Currently, I am thinking about writing a game that is rather graphics heavy.

I have not yet signed up to the iPhone Developer Program, as I am not sure whether I will get a reasonable performance. I am, being a student, a bit short of money and it would be a kind of a waste if I enroll only to discover that my idea is, performance-wise, too ambitious. I have googled a lot on the subject, but I keep hearing different stories about the performance that would apply to my situation.

It would be great if you guys could shed some light on the subject. The situation is as follows: there are only few polygons and basically, the game consists of lots of 2D sprites in a 3D environment. I won't be using lighting, but I will make some heavy use of alpha blending. You could see the game as a 2D game with sprites, but with the difference that it will be 3D (with perspective).
I can stuff my sprites in a large texture map (maybe two, not sure yet), but still - how fast does OpenGL ES handle lots of textures with alpha blending?

I am very sorry if similar questions have been asked before.

Thanks a lot,
JPvdB
JPvdB is offline   Reply With Quote
Old 02-19-2010, 06:51 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 234
warmi is on a distinguished road
Default

Quote:
Originally Posted by JPvdB View Post
Hello,

I am new to iPhone development. Currently, I am thinking about writing a game that is rather graphics heavy.

I have not yet signed up to the iPhone Developer Program, as I am not sure whether I will get a reasonable performance. I am, being a student, a bit short of money and it would be a kind of a waste if I enroll only to discover that my idea is, performance-wise, too ambitious. I have googled a lot on the subject, but I keep hearing different stories about the performance that would apply to my situation.

It would be great if you guys could shed some light on the subject. The situation is as follows: there are only few polygons and basically, the game consists of lots of 2D sprites in a 3D environment. I won't be using lighting, but I will make some heavy use of alpha blending. You could see the game as a 2D game with sprites, but with the difference that it will be 3D (with perspective).
I can stuff my sprites in a large texture map (maybe two, not sure yet), but still - how fast does OpenGL ES handle lots of textures with alpha blending?

I am very sorry if similar questions have been asked before.

Thanks a lot,
JPvdB

On the older model (3g) I was able to pump out about 350 32x32 alpha blended sprites + full screen dual blended background ( 2 textures blended with combiners ) while maintaining around 32 fps.

On the 3gs , the number went up to around 1750.
warmi is offline   Reply With Quote
Old 02-20-2010, 01:45 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 226
mlfarrell is on a distinguished road
Default

I think you'll be fine. My game is 3D and does well over 20,000 texture mapped polygons with frame rates in the 30-60 range. On the non-3gs I need to cut that down some.

2D performance should be fine. The trick is to merge all of your drawing into as few of opengl calls as much as possible. Say if you have 100 images to render, instead of calling glDrawArrays 100 times with 100 state & texture changes, do fewer calls using 1 big collage texture containing multiple subimages.
mlfarrell is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 402
8 members and 394 guests
13dario13, iOS.Lover, JackReidy, jeroenkeij, Leslie80, Wikiboo, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,671
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JackReidy
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:44 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0