Thread: framerate vs refreshrate

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    61

    framerate vs refreshrate

    I'm using a timer to limit the framerate in my game. I just found out how to do it, and it works fine. There is a problem though.

    First of all I need to be able to play the game well in windowed AND fullscreen mode. The refreshrate for the fullscreen mode is 60hz, and the refreshrate in windowed mode is 85hz. I want to limit the framerate to 60hz. In fullscreen mode this works well (nothing really changes), but in windowed mode, the movement in my game isn't smooth.

    I figured this is because the refreshrate is 85hz, and the framerate 60hz. So 25 frames are shown on the screen double as long as the other 35 frames.

    When I change the framerate to 42.5 (85 / 2) it runs smoothly in windowed mode, but I get trouble in fullscreen mode.

    Does anyone know how to solve this ? (Except for changing the framerate to 5

    Thanks in advance.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Use the refresh rate of the monitor and you have no troubles. Just vsync it. If the refresh rate of the monitor or screen is greater than your game...why would you want to slow the game down when you can get more frames? I'm lost.

  3. #3
    ---
    Join Date
    May 2004
    Posts
    1,379
    You shouldnt need to limit your framerate. Everything should be time based so that when run on slower or faster computers the speed of the game will be the same but the framerate will vary, unless ofcourse vsync is turned on.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [SDL+OpenGL] Constant framerate code?
    By DARKGuy in forum Game Programming
    Replies: 14
    Last Post: 05-05-2007, 02:08 PM
  2. weird framerate
    By psychopath in forum Game Programming
    Replies: 18
    Last Post: 01-03-2005, 07:26 PM
  3. Framerate
    By cgod in forum Game Programming
    Replies: 5
    Last Post: 11-30-2004, 10:33 AM
  4. Is this a good framerate method?
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 07-08-2004, 02:42 AM
  5. unconstant framerate
    By Hunter2 in forum Windows Programming
    Replies: 5
    Last Post: 07-09-2002, 10:00 PM