Texture performance - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Texture performance (/thread-319.html)
Texture performance - JPvdB - Feb 19, 2010 06:03 PM
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,
Texture performance - OneSadCookie - Feb 19, 2010 10:33 PM
This may be the best answer you get without benchmarking:
Texture performance - AnotherJake - Feb 19, 2010 11:46 PM
Great article! I hadn't seen that yet.
@ JPvdB: Since you don't have a device to play them yourself, what I would suggest is looking at some of the games on the iTunes store which might do something like you're planning, and then going to their websites to look at videos of their gameplay.
Giving a ridiculously wild generalization: you can probably expect to be able to get away with a couple hundred blended sprites with 3D transforms at reasonable frame rates on first gen hardware (disclaimer: depending on wildly various factors).  I really shouldn't even say this because you could be fill-rate bound in a dozen sprites or with crappy coding, or easily many many more if you're great at coding and are using small sprites and batch them properly, so please emphasize the "wildly various factors" part, with extra special emphasis on "wildly" [/edit]
Texture performance - Kerome - Feb 21, 2010 01:48 PM
I ran into a similar problem. Part of the difficulty is that stats on the PowerVR forums and general stats like those in the article aren't that useful, because the architecture varies wildly - just because the SGX is listed in a certain table as capable of 7m tri's a second, that's a theoretical max and still depends on clock speed, memory bus in the specific chip, as well as exactly which SGX chip it is. There are massive differences in speed between the SGX 520, 535 and 540, and no-one seems certain exactly what's in there.
In the end the only sure way to really measure these things, as lots of PC graphics engines have demonstrated in the past, is to write your own benchmarking mode in your game engine. Which also has the benefit that you're immediately factoring in how super (or not) your code is. But it does mean doing more work up-front.
Texture performance - arekkusu - Feb 22, 2010 12:54 AM
Kerome Wrote:no-one seems certain exactly what's in there.
If you want to know what the renderer is, try asking it:
Texture performance - cmiller - Feb 22, 2010 12:49 PM
arekkusu Wrote:If you want to know what the renderer is, try asking it:
If you run that on an iPhone or iPod touch you'll need to pay special attention to the console view in the devices pane of Xcode in order to see the output.
(Just an FYI - otherwise things could go south as far as your sanity is concerned).
IIRC the renderer differs from simulator to device, so you'll have to keep that in mind while working.