Husky Posted November 12, 2013 Share Posted November 12, 2013 Hi guys, I'm trying to limit the FPS of my game, this way, I'll have a consistent behaviour on different platforms. Any easy way to do this? Thanks a lot. Link to comment Share on other sites More sharing options...
Mike Posted November 12, 2013 Share Posted November 12, 2013 What do you mean ? Phaser already limit the fps to 60 fps... of course if there are performance hit it will drop but overall it will be consistent ... Also if you have some problem/bug the best way to help you is if you provide online example Link to comment Share on other sites More sharing options...
rich Posted November 12, 2013 Share Posted November 12, 2013 Also check out the dev branch version as we've some changes in there that keeps the fps rate more consistent across devices. Link to comment Share on other sites More sharing options...
Husky Posted November 13, 2013 Author Share Posted November 13, 2013 Actually I'm trying to achieve 30 constant FPS.My current hardware can't make 60 FPS. Link to comment Share on other sites More sharing options...
lukaszwojciak Posted November 18, 2013 Share Posted November 18, 2013 You should try to use a generic frame limiter:http://codetheory.in/controlling-the-frame-rate-with-requestanimationframe/ Would be nice to see it implemented in a game engine though Additionally you can frame-limit only background/non-vital animations and get the full 60fps for the main scene/character. Link to comment Share on other sites More sharing options...
yahiko Posted August 4, 2015 Share Posted August 4, 2015 I'm using Phaser 2.4.2 and the attribute game.time.fps.My issue is it displays 67 fps instead of 60 I could expect. Is it intended?Is there a way to limit to 60 fps only? Link to comment Share on other sites More sharing options...
Recommended Posts