Repository navigation
Description
Nixpkgs version
- Unstable (27.05)
Describe the bug
running dwarf-fortress under niri results in an unplayable mess.
I have tested:
- the latest version (53.17, regular dwarf-fortress package), under which I simply get a stable 2/2 fps (that's graphical and game fps) and sometimes I get lucky and the main menu gets rendered so I can click around (though I usually have to mash the mouse button pretty aggressively for the 2fps game loop to pick it up), more often I just get nothing other than the copyright notice and the fps counter on the bottom left. this happens under both xwayland(-satellite) and wayland native. and the CPU usage stays close to zero! it just doesn't do anything.
- one major version prior (
dwarf-fortress-packages.dwarf-fortress_52_05), where the fps seem decent enough, but sometimes the main menu still entirely fails to render, and if I run the wayland-native version by unsetting DISPLAY, the main menu flickers at random intervals (if it shows up at all).
this happens on both of my laptops which are both running niri with basically the same configuration, though one of them is running NixOS and the other one is running Guix System with the nix service on top. they also have similar hardware except one is weaker but newer (Intel N100, 12G RAM) and the other is slightly older but more powerful (Intel Core i5-1135G7, 32G RAM). notably both should be able to go up to at least 3.6ghz clock speed, and "decent single-core performance" is the only system requirement for this game.
I've been trying to figure out what's going on here for a while, and I think I've narrowed it down to probably a packaging issue, which probably only manifests under niri, but it might also happen under other wayland compositors or other gpus, and I'm less sure about the latter than about the former. I have also tried dwarf-fortress from the guix-gaming-games guix channel, which is at version 53.16 but runs without any issues.
Steps to reproduce
run niri (or probably another standalone wayland compositor) on an intel CPU, install dwarf fortress, run dwarf-fortress. I have tried running the xwayland version (default) and the wayland-native version (by unsetting DISPLAY). I have also tried setting NIXPKGS_DF_OPTS=fmod but it didn't change anything.
Minimal reproducer
Expected behaviour
the game should run at an appropriate framerate for my system, not be stuck at 2fps on both of them.
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
small laptop:
- system:
"x86_64-linux" - host os:
Linux 6.18.66, NixOS, 27.05 (Axolotl), 27.05.20261201.c555305 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.35.6 - nixpkgs:
/nix/store/r88gxcdviidyc9y0fgq4gnpfigl7z6bg-source
big laptop (nix-shell gave me an error so I did nix run instead):
- system:
"x86_64-linux" - host os:
Linux 7.3.5, Guix System, noversion, nobuild - multi-user?:
no - sandbox:
yes - version:
nix-env (Nix) 2.32.8 - nixpkgs:
not found
Notify maintainers
@a1russell @robbinch @roconnor @numinit @shazow
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsIssues
Activity
numinit commentedon Dec 3, 2026
I can repro this on a 26.11 desktop. Looking into it...
numinit commentedon Dec 3, 2026
Try changing [SOUND:YES] to [SOUND:NO] in ~/.local/share/df_linux/prefs/init.txt. Upstream appears to have forgotten to include
songs.bankwhich makes the game constantly try to reload itnuminit commentedon Dec 3, 2026
I'll look at options, but we may have to revert to make sound work. It looks like 53.17's fmod studio updates caused a pretty severe regression, unfortunately