Windows Flash > Mac Flash

Im working on a small flash game for fun and discovered some odd things when testing between platforms. I develop on a MacBook Pro (2.16 GHz dual core) but found that even though I set my target framerate to 100fps the game never achieves this, I usually get closer to 60fps. However, If I set my target framerate to 60, I get closer to 40. Somewhat odd.

I was concerned that if performance was slow on my computer It would be much worse on an older one, so I decided to test the game out on a slower PC (1.7 GHz single core) to make sure it could keep up. I was shocked to discover that it achieved an average of 98fps! Not only that but the game only used about 10-15% of the CPU, where as the game uses close to 60% of BOTH of my MacBook Pro cores.

It seems that Adobe has done one hell of a job optimizing Flash for Windows and is really lagging on the Mac end. I hope that Flash 10 will bring equal performance on each platform. At least for the time being I can rest assured knowing that if the game runs well on my computer it will run damn well on most PCs out there.

FYI, I had the latest developer debug build of Flash installed on each machine.

How-To: Custom Twitter Badge with URL replacement

So I am in the process of setting up my blog and wanted my Twitter badge displayed. Simple right?

Not quite… The problem is that you cant really customize it and it’s URLs aren’t clickable links. On top of that, I use a huge font for my badge so it doesn’t handle wrapping very well. Even a tinyurl would burst out of the boundaries of my Twitter box.

How to fix this? [Read more]