Jump to content
The Dark Mod Forums

Does the dark mod use a Wayland gl context to run on Wayland?


i30817

Recommended Posts

I've seen major slowdown of the kind i experience on menus on the darkmod also on retroarch and the root cause of that was using XWayland and was solved by compiling Wayland support in.

 

The 'xeyes test' (xeyes move if the xeyes can capture the mouse over the window being focused over is not Wayland) fails, so apparently the context is not x11, but the command line says things like:

 

 

----- Initializing OpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
Free86-VidModeExtension Activated at 1366x768

... (much later)

 

Fatal X Error:
Major opcode of failed request: 153
Minor opcode of failed request: 18
Serial number of failed request: 74
BadValue (integer parameter out of range for operation)
Couldn't exec autocommands.cfg - file does not exist.
Shutting down sound hardware
idRenderSystem::Shutdown()
I18NLocal: Shutdown.

 

 

So it appears xeyes fails for another reason.

Edited by i30817
Link to comment
Share on other sites

btw, i just found out that retroarch at least won't be able to use wayland (or rather compile on the buildbots) on ubuntu versions equal or less to 18.04 (this includes *all* flatpaks because they build on a much older version of the distro btw). It still works if you install the missing library yourself and compile it yourself, but not on buildbots because the required lib wasn't backported by canonical or debian.

 

So maybe it's not going to be so easy to distribute a binary with wayland compatibility for you, though to be honest, the missing library in retroarch is only a compile time dependency so maybe you could get away with it, being self compiled.

Edited by i30817
Link to comment
Share on other sites

I'm using wayland (the new display server instead of x11).

 

Wayland has a 'emulation layer' for x11 apps called XWayland... which is noticeably slower.

 

Some apps can be compiled with support for both wayland and x11 (like retroarch).

 

But ubuntu is currently screwing up in versions of ubuntu previous to 18.10 because it doesn't ship updated wayland (this affects retroarch because it requires a larger version to build).

 

This is aggravated because all flatpak installs are built on a (one single one) ancient version of the distro (for supposed binary compatibility) which means that wayland for retroarch is always disabled because one of the buildbot required compile time library is always less than the required version for RA.

 

To be clear, most of this is irrelevant to the dark mod, what i'm looking for is if there are plans to run on Wayland directly without pulling in XWayland (slower) into the picture and propagating some info of the pitfalls especially if you build it for 'binary compatibility'. Newer versions of ubuntu are supposed to switch to wayland by default too, so everything x11 will start to run on XWayland in fedora and ubuntu (probably).

Edited by i30817
Link to comment
Share on other sites

To be clear, most of this is irrelevant to the dark mod, what i'm looking for is if there are plans to run on Wayland directly without pulling in XWayland (slower) into the picture.

 

Unlikely, because there aren't any core developers currently working on Linux, and there is no expertise within the team (AFAIK) for integrating with Wayland.

 

I myself do run on Linux and can at least test the mod, but any coding I do is for DarkRadiant not the mod itself, and I don't have any Wayland experience either.

Link to comment
Share on other sites

Also i forgot to mention, but - at least in XWayland for wine, but probably for Wayland too - you're probably going to get some reduced functionality around fullscreen (it's fake) and changing resolutions (can't currently happen, probably will be 'fake' in the future).

 

 

These are problems wine has too, and they can crash badly coded games that don't fallback cfg resolutions to the desktop one before failing, or ignore the reported possible resolutions.

 

Wayland did this, why else, security. Same reason you can't access the framebuffer of other windows and capture the total screen. Desktop environments have 'blessed' apps that can do it (the resolution at least, haven't seen a fullscreen capture or drop color picker yet).

 

It's not much of a problem if your app fallsback resolution correctly and the user doesn't want to lower resolution for performance. If one of those applies, it's super annoying.

 

Thinking about this, this probably isn't a problem for the darkmod because the game actually starts on XWayland.

Edited by i30817
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...