Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Screen Flickering
- - By ZenVirZan Date 2014-10-22 11:19 Edited 2014-10-22 11:57
Hi,
I'm working on a game at the moment which allows the player to select between different resolutions. To change resolution, the Window is closed and re-initialized with the new resolution as would be expected.
It begins correctly, but 5 seconds in it starts to flicker to black very quickly, and stops drawing new frames. It does keep updating, however, and I can hear the game changing scenes when clicking around randomly.
I saw someone else post about this looking around, but I didn't find out how it can be fixed.
Youtube Video
Anyone have any idea how to fix this? I don't want to ask the player to restart it themselves, or make a separate launcher.
Parent - - By lol_o2 Date 2014-10-22 15:36
Do you have newest version of Gosu? Similar bug was fixed around 0.8.x.
Also, system information may be helpful.
Parent - By ZenVirZan Date 2014-10-22 23:51
I just updated to 0.8.5 and it has improved slightly.
When I set the window to close, it creates a new window leaving the old instance open for a little while. While this phantom instance remains, all text renders correctly on the new window. When the phantom window closes (after about 5 seconds) all of the rendered text is drawn as white boxes. The game does continue running, drawing and responding.

I'm running Windows 7 x64, 4GB RAM, Ruby 1.9.3
Parent - - By jlnr (dev) Date 2014-10-22 16:08 Edited 2014-10-22 16:16
I have filed a new issue on GitHub for adding Window#resize(w, h, fullscreen). This issue comes up very often, and closing windows to recreate them in a different resolution has never really been supported.

http://github.com/jlnr/gosu/issues/255

Not that this immediately helps you :) - I think the best way around this is a separate launcher, for now.
Parent - By ZenVirZan Date 2014-10-22 23:54
If this isn't possible at the moment, that's alright. I can work around it for now. It would be nice to have it working correctly at some stage, though - I'll keep an eye out for #resize in the future.
Up Topic Gosu / Gosu Exchange / Screen Flickering

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill