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

Author Topic: Hidden Window Creation  (Read 5185 times)

0 Members and 1 Guest are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Hidden Window Creation
« on: February 01, 2018, 02:19:08 am »
It could be added to the Styles flags.

Creating a window and instantly hiding it causes it to flicker on Windows 10 at least (very visibly and jarringly) on the screen so it's not enough.

The only previous thing I could find was this issue but it seem to not have been followed up on: https://github.com/SFML/SFML/issues/1155
Back to C++ gamedev with SFML in May 2023

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Hidden Window Creation
« Reply #1 on: February 01, 2018, 03:03:21 pm »
And what's the use case?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Hidden Window Creation
« Reply #2 on: February 01, 2018, 05:31:46 pm »
It causes a very jarring flicker of the original Window on Windows if I want to do something with the Window myself right after creating it (like maximize or hide it). It looks horrible, bad on the eyes and look like a bug when it happens.
Back to C++ gamedev with SFML in May 2023

Jonny

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Email
Re: Hidden Window Creation
« Reply #3 on: February 16, 2018, 01:59:48 am »
I have needed this in the past, and ended up adding it to my local version of SFML.

It was a while ago, so I can't remember the exact use case. IIRC it was something to do with loading resources before the window opened causing issues because of some openGL stuff I don't understand.


From memory, the windows implementation was very straightforward, especially if you're familiar with windows API, so if there's no complications on other platforms I'd fully support this request.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Hidden Window Creation
« Reply #4 on: February 16, 2018, 02:37:14 am »
Laurent has already said that he wants pretty much this to be implemented as part of 'Window States': https://en.sfml-dev.org/forums/index.php?topic=23578.msg161405#msg161405
Back to C++ gamedev with SFML in May 2023