Switching from V-Synced to Fixed at Runtime?

This forum is currently in read-only mode.
  • Hi guys,

    I was wondering if it is possible to switch from V-Synced to Fixed frame rate modes at runtime, and vice-versa. The reason why I am asking is because I want to have an option where users can set whether they want V-Synced or not.

    I found out that my game runs smoothly on my PC using V-Synced mode but it doesn't on other peoples computers. When I switch to Fixed mode, it then works on others computers but looks choppy on mine.

    Thanks in advance!

  • I'm fairly certain you can't change the framerate mode at runtime. You can set the fixed fps rate, when you selected "Fixed" as mode in the runtime properties. That's about it.

    The reason why I am asking is because I want to have an option where users can set whether they want V-Synced or not.

    Fixed mode reduces the display quality significantly. Also if you "code" your game properly, it should run correctly in Vsync mode on all computers. If you had improper events, mostly involving Timedelta errors, the game would appear different on different computers depending on the refresh rate. Did you consider this already?

  • I once made a game (with V-sync mode) and gave it to friend for testing. He said he can't jump onto high platform (which perfectly able to reach on my PC). I used Platform Behavior, and wiki says that all built-in behaviors are made with regard to this problem and uses TimeDelta. But problem was solved with switching to fixed framerate, so I'm not sure that using V-sync with behaviors is reliable

  • Compile two different .exes, and maybe even make a launcher app for them. Might not be viable if your game.exe is huge though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The platform behaviour does have some sort of frame rate bug in it. I have posted a bug report on it a month or two ago.

  • The platform behaviour does have some sort of frame rate bug in it. I have posted a bug report on it a month or two ago.

    That just might be it. I've been using only but behaviors on my game.

    [quote:12doxilg]Compile two different .exes, and maybe even make a launcher app for them. Might not be viable if your game.exe is huge though.

    I just might do that. Thank you for your tip.

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