Day of Happiness

June 8, 2009 at 8:49 pm

iPhone OS 3.0: Want
iPhone 3GS: Want
Mac OS X Snow Leopard: Want
Safari 4: Wanted it. Got it :D

Not a bad set of announcements today. I like how many of them aren't even trying for something revolutionary and huge, but are rather trying to toss in a million little refinements to make things faster, cleaner, and just overall better.

I'm thinking about playing with some of the more recent improvements in WebKit. When I first started developing Sunset, Mobile Safari didn't give a lot of love to iPhone developers. No way to intercept touch events, pretty dismal performance, etc. Things have improved quite a bit since then. So much so, I dare say, that talented developers could make webapps that are now only a half step shy of their native counterparts in terms of at least delivering a decent touch interface.

Maybe I should make a refined version of Sunset, one that just goes a bit further with the WebKit stuff.

Oliver

June 9, 2009 at 12:25 am

Yay!

Have you played with the safari 4 dev tools at all?

Donald Hays

June 9, 2009 at 1:09 am

A little bit. Not a bad set of tools at all. According to the profiler, my rendering code is the most expensive part of Sunset. Who would have guessed ;). The Resources tab says that everything clocks in at 1.272MB, which is well under the 10MB iPhone limit (though I think the iPhone limit is based on images after decompression ... dunno). It also looks to be telling me that I wouldn't actually gain much loading performance from compiling the games' scripts into one big file, since most of the load time is spent downloading all of those images. Trying to compile the images into texture atlases, on the other hand ...

The debugger looks well done, though it might take me forever to think to use it instead of spreading alerts everywhere to hunt down bugs.

It's also kind of freaking me out that those web inspector pages appear to be pages themselves. It gets all mind trippy and meta and stuff.