You should take a look around pyglet instead cocos2d for fps limitation. 
Answer example: https://stackoverflow.com/a/14735825/801924

Le dimanche 17 décembre 2017 18:31:08 UTC+1, smallrice388 a écrit :
>
> I am new to use cocos 2d python and I face a problem now: I want to limit 
> the FPS below 30, but it seems that the python cocos2d framework doesn't 
> provide the interface to limit the FPS. Does anyone know how to solve 
> this problem? Thanx in advance!
>
> My code framework is as follow:
>
> # -*- coding: utf-8 -*-import cocosimport pygletfrom cocos.actions import 
> *from cocos.director import *from cocos.scene import *from game_controller 
> import *import common
> def main():
>     #initialize director
>     director.init( width=common.visibleSize["width"], 
> height=common.visibleSize["height"], caption="Flappy Bird")
>
>     #turn off display FPS
>     #director.show_FPS = True
>
>     #run
>     gameScene = Scene()
>     game_start(gameScene)
>
>     if director.scene:
>         director.replace(gameScene)
>     else:
>         director.run(gameScene)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to