GMS 2 Game lags briefly while in full screen

Discussion in 'Programming' started by Kiwi, Sep 11, 2019.

  1. Kiwi

    Kiwi Member

    Joined:
    Aug 31, 2016
    Posts:
    5
    Don't know why, but this happens in every project I make.

    The game runs super smoothly in windowed mode, with no frame drops whatsoever. But then when I enter fullscreen, it *sometimes* drops from 60 to ~30 while the screen tears, then it goes back to normal after a few seconds. The problem also fixes itself if I exit fullscreen and then re-enter it.

    Does anyone know why this is happening?
     
  2. spoonsinbunnies

    spoonsinbunnies Member

    Joined:
    Aug 24, 2018
    Posts:
    111
    if it only tears for a brief second or two before fixing itself, its probably something to do with the hardware adjusting, I could be wrong, but a better question would be if your game adjusts to fullscreen in a pause menu or such is it long enough that the player would even notice? If it happens only once, it would stand to reason you could flip the setting and unflip it at the start menu and it would remove the problem maybe? not sure why in gamemaker specifically this would happen.
     
  3. Binsk

    Binsk Member

    Joined:
    Jun 22, 2016
    Posts:
    583
    Disable vsync in your game settings (or via code). If you can't reach 60fps (even if it is 59fps) vsync will drop the framerate to 30.

    As vsync only occurs in fullscreen I'm assuming this is your issue.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice