hungrybutterfly Posted December 11, 2013 Share Posted December 11, 2013 I'm slowly coming to terms with the limitations of Canvas and found image rendering on Firefox (version 25) to be very slow, compared to say Chrome. I presume it's still rendering in software. Slow down is fine, I can just compensate for that by updating the game with the given time delta. The problem I can't fix is audio playback. When the frame rate drops the audio stutters constantly and sounds awful. Link to comment Share on other sites More sharing options...
rich Posted December 11, 2013 Share Posted December 11, 2013 Hmm for me Firefox renders just as fast as Chrome, so I wonder if it's the way its using your GPU perhaps. What you could always do is just disable audio for Firefox only - you can determine this via the Phaser.Device class. Or you could poll the frame rate once the game starts and if it drops too low then disable the audio? Phaser.Time should have what you need in there for fps rate, etc. Link to comment Share on other sites More sharing options...
hungrybutterfly Posted December 11, 2013 Author Share Posted December 11, 2013 Ok thanks for the suggestion. I'm drawing very few sprites but they're quite large (4 * 450x640) so I can only assume it's a pixel fill rate issue. There's at least 2 machine I have access to with the same problem. Anyone else out there experiencing this? Link to comment Share on other sites More sharing options...
rich Posted December 11, 2013 Share Posted December 11, 2013 Upload it somewhere for others to test? I certainly don't see this on my PC, but it's got a top of the range GPU in it too. Link to comment Share on other sites More sharing options...
jcs Posted December 11, 2013 Share Posted December 11, 2013 FYI, I don't see this problem on any of my machines (all laptops with intel onboard video or old intel/nvidia dual) - firefox is generally a little slower than chrome (both canvas & webgl), but not as slow as safari, but they're all within a few fps of each other. (latest version of all browsers) Link to comment Share on other sites More sharing options...
hungrybutterfly Posted December 12, 2013 Author Share Posted December 12, 2013 Turns out I'm a donkey. I had a load of bitmap text images that I'd *ahem* forgotten about which was causing all the slow down. So I just render them into a texture now and all is fine. ee-or Thanks for the help guys Link to comment Share on other sites More sharing options...
Recommended Posts