So, Here I am (middle of the night… again) working on some new models to improve Fowl Invaders. I’m happier with the new model, but I think to my self “hey, this is more complex, I must be pushing up my poly count”. So, I highlight my object in Cheetah and bring up the model info. “Hmm, not bad still, but how does that compare with the existing model (iPhone don’t like too many polys)” So I open Unity iPhone, highlight my model, double click to bring it up, then pop open the model info…
Now, I’ll argue that I’m getting better with modeling… but!!! :shock:
I took some pictures, 'cause that just don’t make sense! Is something changing after modifier and export/import into Unity, or is my smallest (most often used, always on screen in numbers) ship clocking almost 6000 Polys - per ship!!! :shock:
And if so… how the sam h*ll is the iPhone managing to run solid with up to 10 of these bad boys on screen at one time (I haven’t done anything special with rendering, no mesh combine, nothing)!!!
If that’s true, then I think I’ve found a realllly good way to improve performance
Here’s the before and after shot (before the first ship appears on screen, and after as you can see)… If the Tris == Polys… just watch that sucker jump!!! :shock:
Well that is damn crazy! Best I can guess is you’re only using 3.9Mb of VRAM which leaves a lot of RAM for other stuff. Plus you have no skinned meshes or animations etc. With that yeah, could be ok but you did build and run it on your device - right?
Build and run! It’s in the App store right now! I’ve tested the cr*p out of this thing, and thus far the only performance issues came from another forum user who tried it on their first gen iPhone, at that perf only staggered at level 7!?!
So I’m not crazy right (I mean I can tell the modifier is applied, otherwise the ship would look like a sharp edged disk - not pretty ). These models are pushing huge poly counts… right?
yeah probably you aren’t crazy but maybe. you really have to run the profiler to see if you are.
i’d guess you’re getting around 50ms per frame or less. rendering or cpu or both might be high because of the poly count but you probably don’t have much else chewing up cycles. so if those 3 were chewing up, 35, 20, 5ms and you had nothing else hitting it, you’re at 20 fps (50ms).
I don’t know about that… those little ships are physics driven (which is why they pop up if you hit 'em just right)! I’ve played up to level 18-20, and I’ve seen up to 10 of these little ones on screen with medium and large (which I can only assume are even higher poly - I’ll go check, but the large is at least 2 passes of the modifier)! Add missiles (also physics driven), trail renders (on the missiles) explosions, sound… what have you. :shock: :shock:
I’m guessing (based on these numbers) that at level 18 I’ve been pushing out somewhere in the 60-200K polys range at any given time!! Without really knocking out the responsiveness (I stay below the 30 draw call limit even in tests run at level 50) on a second gen iPod touch.
Unity folks, my hat is off to you, that’s one hell of an engine… now if you don’t mind I think I’ll go and reduce my poly usage by a factor of 10 or so
have you put it on your device? if you’re looking at the stats window only you’re looking at how your computer is handling it. you need to put it on the device and run the profiler.
Unity iPhone can easily handle 30k+ triangles provided they aren’t skinned.
The 7k that you hear all the time isn’t a particularly useful number. If a lot of those are on skinned meshes then sure, but if they aren’t then there’s nothing stopping you going into the tens of thousands.