Frame rate on the iPhone just reared it's ugly head. I wrote a function that would allow the user to change the opacity of a given layer of a TMX tile map, but that requires changing the opacity of each of the tiles (sprites) in the layer.
But once I did that, the frame rate dropped to something like 3 fps. So what I am finding I need to do is just change the tiles on the screen at the moment. That takes just 0.001 seconds, since I am updating 70 tiles instead of 2500. The problem is that now I need to update the opacity of tiles whenever I move new ones onto the screen. It'll be a hassle, but it should be much faster.
Anybody have a better idea?
- Posted using BlogPress from my iPad
Saturday, February 5, 2011
Wednesday, February 2, 2011
Let's get started...
I've been playing around with some bits of cocos2d since our three-week class wound up. Messing around with rotationGestureRecognizers adjusting the opacity of everything in a layer at once, putting multiple layers in a TMX file. I think it's time I get the show on the road!
Subscribe to:
Posts (Atom)