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

Author Topic: Force window updates whilst minimized?  (Read 6285 times)

0 Members and 1 Guest are viewing this topic.

Allptraum

  • Newbie
  • *
  • Posts: 7
    • View Profile
Force window updates whilst minimized?
« on: February 28, 2021, 03:02:37 pm »
Can i somehow force my sfml window to update all the time?
At the moment it freezes whenever it gets minimized.

I like to make custom OBS widgets with sfml, minimize them, and add a window capture in OBS for them. But they have to be open for them to actually update.

Is there some way to tell, either windows or sfml, to just update anyways?

Lg

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Force window updates whilst minimized?
« Reply #1 on: April 28, 2021, 09:44:11 am »
It is kind of out of SFML's control whether the window manager decides to update or not a hidden/minized window.

As for OBS captures, last time someone had such an issue, the solution is to capture the window as "game capture", which the hooks directly into the rendering pipeline and doesn't depend on the window manager's repainting.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything