Hello,
Is there any possibility to set a strict FPS for entire game? Game is running with 40 fps on my laptop, 30 fps on iPad, 16 fps on iPhone. So I want to set a strict 24 fps and get good result on most devices.
Thank you!
Make sure to use the correct expressions to make the game framerate independent and be sure to apply the performance tips.
There's no way to set the frame rate in C2, it will try and run at 60 fps everywhere it is played.
Yeap, thanks, I was surprised :)
"Note that Physics is an exception."
I my game I use only physics. All performance tips are already applied. So, any ideas?
Reduce the number of objects with the physic behavior, their size, their collision polygon (using bounding box or circle wherever it makes better sense).
Also have a look at the physic performance tips in the physics basics tutorial and check about the set stepping iterations / set stepping mode in Physics actions: Global settings.
Cool! After using stepping mode all physics are like real with no slow motions. Thanks!
Are you sure? I don't see why it should be capped at 60. Many gamers use 120hz screens, so it would be cool if it could over 60 for them -- especially if that Hz becomes more popular in the future.
Develop games in your browser. Powerful, performant & highly capable.
Yeah, most browsers will try to v-sync the display, which most commonly is 60 Hz, but can be up to 120 Hz. That's also why you need to make the game framerate independent and not assume it runs at 60 fps, otherwise it will run twice as fast on some monitors!