View Issue Details

IDProjectCategoryView StatusLast Update
0011620Dwarf FortressTechnical -- Renderingpublic2020-09-15 22:15
Reporterdavpin Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version0.47.04 
Summary0011620: The whole game presents a 5-10 second lag from the start of the game
DescriptionAny 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
Steps To Reproduce1. 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
Additional InformationI am new to Dwarf Fortress with no previous experience on how to debug issues on it.
TagsNo tags attached.

Activities

davpin

2020-09-11 19:44

reporter   ~0040725

Forgot to mention that if I click on my mouse, the screen updates immediately.

lethosor

2020-09-11 20:07

manager   ~0040726

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!

davpin

2020-09-15 22:15

reporter   ~0040737

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)

Add Note

Note

Issue History

Date Modified Username Field Change
2020-09-11 19:35 davpin New Issue
2020-09-11 19:44 davpin Note Added: 0040725
2020-09-11 20:07 lethosor Note Added: 0040726
2020-09-15 22:15 davpin Note Added: 0040737