Jackal16 Posted September 1, 2015 Share Posted September 1, 2015 Hi, does anyone know of a way to limit the frame rate to 30 fps rather than 60. This would be very useful for mobile games? Cheers Link to comment Share on other sites More sharing options...
AshleyScirra Posted September 1, 2015 Share Posted September 1, 2015 To do this properly, the browser needs to schedule requestAnimationFrame calls at half v-sync rate, which it's not currently possible to do - but Google are interested in supporting it: https://code.google.com/p/chromium/issues/detail?id=522983 Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted September 1, 2015 Share Posted September 1, 2015 The maximum frame rate is set automatically. Do not waste your time on it. Link to comment Share on other sites More sharing options...
netcell Posted September 2, 2015 Share Posted September 2, 2015 There was a plugin for that, it actually skips running update on frames However, I heard it's broken on Phaser 2.4. I'll try to fix it when I have time https://github.com/photonstorm/phaser-plugins/tree/master/SaveCPU The maximum frame rate is set automatically. Do not waste your time on it. Sometime, time wasting actually create new things you know Hell I thought creating a new game framework is pointless, but @photostorm made legend you know Tilde 1 Link to comment Share on other sites More sharing options...
Skeptron Posted September 2, 2015 Share Posted September 2, 2015 Use desiredFps : see doc http://phaser.io/docs/2.3.0/Phaser.Time.html#desiredFps Fenopiù and Tilde 1 1 Link to comment Share on other sites More sharing options...
Jackal16 Posted September 2, 2015 Author Share Posted September 2, 2015 I tried desiredFps but it doesn't seem to make any difference to the framerate. Link to comment Share on other sites More sharing options...
Skeptron Posted September 2, 2015 Share Posted September 2, 2015 Weird. It works for me (on Chrome). Maybe the place you put this code in is important? I put it into the create() function of my Boot state. Link to comment Share on other sites More sharing options...
Recommended Posts