I've written a basic game using the html5 canvas. It runs smooth in both Chrome and IE, but when i try to run it in Firefox with hardware acceleration enabled it causes RAM usage to go through the roof (spikes for a few seconds then drops back to normal and spikes again). With hardware acceleration disabled it runs fine. (Hardware acceleration enabled does NOT cause problems on any other site).
Any suggestions as to what may cause this behaviour?