Jump to content

DST does not support Wayland protocol.


Fornax
  • Pending

The Linux graphics stack has been rapidly shifting from X to the Wayland protocol lately, so I decided to try running DST using "SDL_VIDEODRIVER=wayland" - DST crashes immediately - from the client log:

[00:00:00]: Unable to initialize SDL: wayland not available

[00:00:00]: WindowManager::Initialize failed
[00:00:00]: WindowManager::Initialize failed
[00:00:00]: THREAD - started 'AsynTextureLoadthread' (128639182046912)
[00:00:00]: THREAD - started 'SDLInputManager' (128639177852608)
[00:00:00]: Error during initialization!
[00:00:00]: Assert failure 'BREAKPT:' at ../source/dontstarve/application.cpp(1881)

 

Distro: Arch Linux, Plasma 6.0.5


Steps to Reproduce

- set SDL_VIDEODRIVER=wayland %command% in the Steam launch options.

- DST immediately crashes.

  • Like 1



User Feedback


It turns out that DST can run as a native Wayland client, which, unsurprisingly, improves framerate and reduces input lag (I used the native SDL library: LD_PRELOAD="/usr/lib64/libSDL2-2.0.so.0" SDL_VIDEODRIVER=wayland %command% in Steam launch options) - however, this causes the mouse input to be completely broken - it's inverted and I can't click on anything:

 

It would be really nice if we were given the option to run DST through Wayland, as the reduced input lag is really noticeable.

  • Big Ups 1

Share this comment


Link to comment
Share on other sites

It's way easier than Factorio, Factorio doesn't even use an pre-made game engine.

DST and Oxygen not included are made in Unity.

Wayland support is available in Unity, the devs would just have to update their Unity version.

Comparing Factorio, a game made from scratch with libraries and code, that still got wayland support, to DST, a Unity game made in an editor witch has Wayland support out of the box for almost 2 years is crazy.

Also, what's the point of a Linux release if you're not even gonna support the default ?

Using Proton would have worked the same if the devs just wanted to support X11 only.

Share this comment


Link to comment
Share on other sites

DST doesn’t use Unity it runs on a custom-built engine and patched SDL libraries. When DST came out of beta Wayland was still very barebones and Nvidia didn’t even support it, so X11 was the only reasonable choice. But years have passed and now even Ubuntu uses Wayland by default.

I’m not suggesting that X11 should be abandoned, it should be treated as a fallback option. X is still doing fine, but it's no longer being developed, it's basically dead. "The good stuff" is happening on Wayland now.

Share this comment


Link to comment
Share on other sites

Bump. The wayland side has improved even more (new protocols have been merged, nvidia has fixed a lot of stuff on wayland..)

  • Like 1

Share this comment


Link to comment
Share on other sites

DST's version of SDL is quite old, remember that DST is the same engine as DS which is well over 12 years old now. I'll let the DST team know but an SDL update would be a pretty big investment of time (if only the testing!) that would come at the expense of gameplay or other tech debt. And I say that as someone using wayland to type this right now so don't think I'm not sympathetic.

  • Like 2
  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...