Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Detect when display mode is changing  (Read 1505 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 2
    • View Profile
Detect when display mode is changing
« on: June 10, 2017, 10:36:25 pm »
I'm wondering if there is any way to tell that the display mode is currently changing. My game loop continues to process updates during the transition to the new display mode (even though it can't actually draw on the window yet). Normally this short delay is not really a problem, but I noticed when starting my game in fullscreen in a different resolution than the desktop, my logo screen doesn't have time to draw before changing to the next state (it changes to the next state after two seconds). I could just put a longer delay if starting in fullscreen, but I was hoping there would be a way to detect this change to skip processing the update phase until it's finished. Any ideas would be appreciated.


After further research it seems this is an issue that can't be solved in software according to https://stackoverflow.com/questions/3770704/is-it-possible-to-detect-if-the-hardware-display-has-completed-the-process-of-sw
« Last Edit: June 11, 2017, 12:43:47 am by salianifo »