Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011620Dwarf FortressTechnical -- Renderingpublic2020-09-11 19:352020-09-15 22:15
davpin 
 
highmajoralways
newopen 
0.47.04 
 
0011620: The whole game presents a 5-10 second lag from the start of the game
Any animation, from the cinematic when you start the game, through the menu selection to the game itself has a severe lag, taking 5-10 seconds to update the frames.

It's important to say I am using Ubuntu 19.10 with I3WM (https://i3wm.org/ [^]) as the window manager and urxvt-unicode as terminal.
 
Few init options that I believe are relevant:

* WINDOWED is set to YES. The issue disappears when set to NO but I don't want to play the game in fullscreen.

* PRINT_MODE is set to 2D
1. Download the game from http://www.bay12games.com/dwarves/df_47_04_linux.tar.bz2 [^]
2. Unpack it
3. Delete libs/libstdc++.so.6 and create a symbolic link to the version the system provides: libs/libstdc++.so.6 -> /usr/lib/x86_64-linux-gnu/libstdc++.so.6
3. Start the game

You should see the lag immediately after the game starts
I am new to Dwarf Fortress with no previous experience on how to debug issues on it.
No tags attached.
Issue History
2020-09-11 19:35davpinNew Issue
2020-09-11 19:44davpinNote Added: 0040725
2020-09-11 20:07lethosorNote Added: 0040726
2020-09-15 22:15davpinNote Added: 0040737
2020-09-15 22:21davpinIssue Monitored: davpin
2020-09-15 22:21davpinIssue End Monitor: davpin

Notes
(0040725)
davpin   
2020-09-11 19:44   
Forgot to mention that if I click on my mouse, the screen updates immediately.
(0040726)
lethosor   
2020-09-11 20:07   
I didn't have this issue on 19.10 (although I can't easily reproduce there, since I've upgraded to 20.04), but here are some things I would try, roughly in this order:
- Change PRINT_MODE to STANDARD
- Try another window manager (I admittedly don't know how hard this is or if it would break your setup, so it's up to you)
- Reduce G_FPS_CAP in init.txt, maybe to around 25

I suspect that some combination of i3, the window size, and the print mode is the issue here, given that fullscreen mode works normally. As a side note, you usually don't strictly need the libstdc++ symlink in libs - DF should be able to locate your system library without it, but I don't think that would affect anything. Anyway, thanks for the details and troubleshooting effort you put in here, especially given that you're new to DF!
(0040737)
davpin   
2020-09-15 22:15   
Hi lethosor,

First, thank you very much for stepping up and try to help me. Really appreciate it.

Changing the PRINT_MOD and G_FPS_CAP worked! I can see the screen with pretty much no lag.

Regarding the symlink, if I use the one that comes with the game, the game does not start, providing the following error message:

./libs/Dwarf_Fortress: <path_to_df_linux>/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /lib/x86_64-linux-gnu/libGLU.so.1)
./libs/Dwarf_Fortress: <path_to_df_linux>/libs/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib/x86_64-linux-gnu/libGLU.so.1)