mifki / df-twbt

Text Will Be Text
192 stars 30 forks source link

freeze on screen resize (windows, dfhack 0.42.06-alpha2) #42

Open draeath opened 8 years ago

draeath commented 8 years ago

When run in windowed mode, rendering stops updating if the window is maximized. Unsure if game outright freezes, or if it's rendering-specific. Restoring the window back to the prior geometry doesn't really do anything. DFHack console output doesn't show anything of interest. I have two monitors, if this matters - primary display is on the right, their geometry differs and they are anchored such that the left screen's top-right corner and right screen's top-left corner meet.

Warning: Plugin automaterial compiled for DFHack 0.42.06-alpha2-0-g6fd904f, running DFHack 0.42.06-alpha1-10-g6fd904f
Warning: Plugin mousequery compiled for DFHack 0.42.06-alpha2-0-g6fd904f, running DFHack 0.42.06-alpha1-10-g6fd904f
Warning: Plugin resume compiled for DFHack 0.42.06-alpha2-0-g6fd904f, running DFHack 0.42.06-alpha1-10-g6fd904f
Warning: Plugin twbt compiled for DFHack 0.42.06-alpha2-0-g6fd904f, running DFHack 0.42.06-alpha1-10-g6fd904f
TWBT: version 5.58
reshape_graphics
reshape_graphics
reshape_graphics
DFHack is ready. Have a nice day!
DFHack version 0.42.06-alpha2 (development build 0.42.06-alpha1-10-g6fd904f)
Type in '?' or 'help' for general help, 'ls' to see all commands.
reshape_graphics
[DFHack]#

Attached my init file, if needed: init.txt Screenshot of window post-maximize.

This behavior is not evident in the '2D' or '2DASYNC' modes, which I use when not using TWBT.

pronvit commented 8 years ago

Does it happen in 'STANDARD' mode?

sanguine-my-brother commented 6 years ago

I might experience the same bug, it does not happen in standard mode.

sanguine-my-brother commented 6 years ago

So, after digging around in my system while experiencing this bug. I discovered that within the Nvidia control panel one must select dwarf fortress and set it to use the Nvidia GPU instead of the integrated one. Once I did this, the freezing stop occurring when resizing the window. Might offer a solution to future players who encounter this bug as well.

draeath commented 6 years ago

I've never left my integrated GPU enabled, and was running into the issue.

It's good it helped you and may help others, but I think that may be a red herring.

I don't have the same system nowadays but may be able to try to reproduce again.

pronvit commented 6 years ago

Sorry I've just never been able to reproduce this, and probably will not if it indeed has anything to do with multiple graphics cards. I'll see if I can notice any differences between TWBT and STANDARD that may be causing this.