Is there a way to cap fps to 30?

0 favourites
  • 8 posts
From the Asset Store
30 high-quality 2D monsters. This asset is perfect for a side scrolling game, or even a turn based RPG type game.
  • I think that would improve performance on some weaker rigs, can i do it with C2?

  • Start of layout, system set timescale to 0.5

  • But i don't want the whole game to slow down xD

  • As close you can get.

    Limiting the amount of frames drawn will only help the gpu.

    The biggest bottleneck is cpu.

  • I recently asked the same thing.

    It turns out it's an engine limitation due to requiring browser rendering engines which implement vsync, so the game runs at whatever speed the display refresh is at.

    So for the meantime, cannot be done.

    Basically just know the limits, when you make bigger games, the CPU becomes the bottleneck as its processing all your JS code 60 times per second. Optimize, and more optimizations!

    How I approached my game is to limit cpuutilization to ~50% max (it measures CPU usage for the main game logic thread, single threaded bound). On my Intel i5-3570K, that means I am reaching 50% of the main thread. I can push it higher, going to 99% and the game starts to slow down. But 50% is a good target, because it means other CPUs that are much weaker, will be capable of sustaining 60 fps. I ended up with players on C2D PCs from 2006 with crap Intel graphics able to run the game fluid.

  • How I approached my game is to limit cpuutilization to ~50% max (it measures CPU usage for the main game logic thread, single threaded bound). On my Intel i5-3570K, that means I am reaching 50% of the main thread. I can push it higher, going to 99% and the game starts to slow down. But 50% is a good target, because it means other CPUs that are much weaker, will be capable of sustaining 60 fps. I ended up with players on C2D PCs from 2006 with crap Intel graphics able to run the game fluid.

    That's a great idea, thanks.

  • This would need support from the browser - star this issue to vote/follow updates on it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the clafirifcation, i'm very optimistic, as the technology is evolving very fast!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)