[as3] frame rate browser issues

http://expectresistance.com/CollisionPlay.html

I’m making this silly ‘dodge the turbulence’ game and I am having some frustrating issues. It wants to run at 30fps in firefox and 60 fps in IE. This causes my timers to screw up and launch my little clouds at wrong intervals basically ruining everything in firefox. I’ve read about the issue, and I understand that the plugins are different, but do you have any suggestions as to what I can do to make this playable cross browser?

here’s my source, any advice is appreciated. Cheers

/edit

Please keep the following in mind when developing with the engine:

  • The Fisix Engine is currently in alpha version, and is still buggy/unstable…
    please report all bugs so that they can be fixed quickly

  • Due to no apparant reason, swf files work about 10 fps slower in an internet browser if the ‘wmode’ parameter isn’t set to ‘transparent’ or ‘opaque’
    If you find that your fisix application isn’t running quickly enough, try sure to change the wmode parameter in your html file
    (A word of caution, wmode-transparent is known to cause some random problems in firefox)

    *** when compiling the given examples files in flex, wmode will not be ‘opqaue’ by default, which causes the simulation to run
    slower than it’s supposed to ***

  • For some reason, AS 3.0 timers are a bit choppy, so instead of using FisixEngine.startEngine() (which uses a timer)
    use FisixEngine.mainLoop(dt) within an ENTER_FRAME event listener.

  • Have Fun with it!

This was in the docs to the fisix AS3 physics engine. Solved my problem.