Hello I am developing a HTML 5 game and in Chrome the animations looks great but in firefox not! I was searching over the internet and i found a solution that i need to change some settings in about:config and they are:
webgl.force-enabled=true
webgl.msaa-force=true
layers.acceleration.force-enabled=true
gfx.direct2d.force-enabled=true
stagefright.force-enabled=true
I change those setting manually and the animations looks great in Firefox. Now my question is how can I do that using javascript? Is it possible?
You should not change these settings – not on your computer and especially not on computers of other people. These settings will be enabled anyway, assuming that the hardware and drivers are capable of handling them. The
force-enabledsettings are for testing only, switching them on is likely to cause instability (Firefox crashes, graphics driver crashes).Most likely reason why Firefox didn’t enable hardware acceleration automatically in your case are outdated drivers – you should install current drivers for your graphics card and recommend other people to do the same.