To get help, you might consider providing an un-shortened version of your script.
I see that your code has 8ms setIntervals. As mentioned above, Firefox never drops below 10 ms (yet). However, playing FFox 4 is very nice. I saw two very small hicks that were clearly caused by garbage collection. Chrome has an edge over Fox in this regard. Although SpiderMonkey (which handles the GC in Firefox) has improved significantly from 3.5 to 3.6, it is still not good enough for many games. In 4.0, this is much better, but still not as good as in Chrome or Opera. (He works.)
While playing the game and looking at your code for a short time, I donβt see any difficulties that could cause Firefox to be unable to cope with what is happening. In addition, Firefox 4 has Canvas hardware acceleration, which is slightly faster than IE9 and much faster than Chrome.
There is a concept on the Internet that Chrome is faster than Gecko when it comes to canvas, but this is because people rarely profile their pages. In fact, the canvas in Firefox 3.6 is already at least as fast as in Chrome, but many tests do not show it, because JavaScript is slower. (And some JavaScript tests are slower because Firefox cannot handle the test harness.)
All this leads to a lot of confusion and misinformation. The bottom line is that your game should be fine in Firefox 4. You should see if there is anything you can do to avoid running an unnecessary GC. For example. Are you reusing variables or creating unnecessary new ones?
However, in Opera 10.53 it was not very nice. Not because Opera could not keep up with the speed, but because instead of moving the lower part, it remained stationary, and instead the entire playing field moved. (Despite this, I managed to rise to level 17 in my first attempt.) In Opera 10.6, the page does not load properly.
You will probably have to debug your code - or perhaps a file from Opera, if it's a regression. (I will be tweeting to get their attention.)
itpastorn
source share