Jump to content


Photo

Antialiasing in Linux


  • Please log in to reply
10 replies to this topic

#1 Atomica

Atomica

    Member

  • Member
  • PipPip
  • 66 posts

Posted 12 March 2018 - 06:12 PM

Sometimes I dabble with Linux with the intention of moving to it permanently, but I always abort the attempt when I realize just how much either flat out doesn't work due to lack of software availability, or works poorly compared to Windows when there is a Linux version. I have the latter issue with TDM, in which the anti-aliasing option does absolutely nothing in Linux for some reason yet works fine in Windows. I've tried a fresh config in addition to using the config I had in Windows, up to and including console commands. It doesn't seem to do anything (using official NVIDIA drivers on both systems).

 

This is rather disappointing since visually it makes a very big difference and I lack the incentive to keep trying to move if one of favorite games doesn't work in Linux as well as it does in Windows. Can anyone shed some light on this? Is this a limitation of the Doom 3 engine on Linux or is this just a problem that no-one cares enough to fix?


Oh my God! JC! A bomb!


#2 kano

kano

    Member

  • Member
  • PipPip
  • 277 posts

Posted 13 March 2018 - 12:02 AM

Do you use nvidia-settings? It is a program on Linux to configure the nvidia card.

 

In there, you will find options for anti-aliasing/anisotropic filtering/rendering quality. You can set them to "application default", off, or force override them with specific values.



#3 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7462 posts

Posted 13 March 2018 - 05:26 AM

I've never seen in-game antialiasing settings work in Linux, although I have no idea why. I assume it's because there is no standard way to communicate such settings to the driver, since antialiasing settings are not part of the standard OpenGL spec.

 

As kano says, you need to set this option in your driver control panel instead.



#4 Atomica

Atomica

    Member

  • Member
  • PipPip
  • 66 posts

Posted 13 March 2018 - 01:39 PM

Yeah I have nvidia-settings. I didn't think to use that because I don't want a global antialiasing setting that gets applied to all games. On the other hand I did just read that there are local environment variables you can specify to apply AA when launching a game, so I'll try that next time.

 

I've seen AA work for other games in Linux so there must be a method. Also if there's no way to do it as part of the standard OpenGL spec, how does TDM manage it in Windows? How do other OpenGL games manage it? Is it got something to do with OpenGL extensions and there's like something specific to various card vendors?


Edited by Atomica, 13 March 2018 - 01:40 PM.

Oh my God! JC! A bomb!


#5 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7462 posts

Posted 14 March 2018 - 05:44 AM

I've seen AA work for other games in Linux so there must be a method. Also if there's no way to do it as part of the standard OpenGL spec, how does TDM manage it in Windows? How do other OpenGL games manage it? Is it got something to do with OpenGL extensions and there's like something specific to various card vendors?

 

I don't know the exact details because I haven't looked at the code. It was just a guess based largely on the fact that the game was released in 2004, and Linux support wasn't a first-class citizen at the time of release (in fact as I recall ID Software didn't even support AMD drivers at all when the first Linux version appeared — it was nVidia or GTFO).

 

It looks like there are some standard ways to enable AA on Linux/OpenGL, either by setting render context options or by rendering to an FBO.

 

https://www.khronos....i/Multisampling

 

No doubt someone with sufficient expertise could get these techniques working with TDM but I don't know if there are any actual Mod developers working on Linux at the moment.


  • stgatilov likes this

#6 nbohr1more

nbohr1more

    Darkmod PR, Wordsmith

  • Development Role
  • PipPipPipPipPip
  • 8449 posts

Posted 14 March 2018 - 09:49 PM

2.06 has FBO but we don't properly specify it for MSAA.
You can, however, set the render resolution higher than the FBO
resolution for a DSR \ SSAA effect. 1.5x resolution is somewhere
between 2xMSAA and 4xMSAA.

There are plans to add FXAA shaders after 2.06 so that cheap\high performance
AA will be available to all. If Linux has anything like Reshade you could
try FXAA that way too.
Please visit TDM's IndieDB site and help promote the mod:

http://www.indiedb.c...ds/the-dark-mod

(Yeah, shameless promotion... but traffic is traffic folks...)

#7 Atomica

Atomica

    Member

  • Member
  • PipPip
  • 66 posts

Posted 17 March 2018 - 05:10 PM

Thanks for the info nbohr1more and OrbWeaver.

 

I don't know if Linux has Reshade or an equivalent but I guess this experience is more of another reminder of why I haven't moved to Linux yet. Despite Valve's and the communitiy's efforts, it's just not popular enough to be treated seriously as a platform for gaming, so we end up with lackluster support even if the game technically works in Linux. Can't really blame you guys for prioritizing on Windows, hell it's where I'm staying. Limited manpower and time after all. Just disappointing we can't escape Windows in any realistic way in 2018 still.


Oh my God! JC! A bomb!


#8 stgatilov

stgatilov

    Advanced Member

  • Development Role
  • PipPipPip
  • 598 posts

Posted 19 March 2018 - 12:31 PM

... but I don't know if there are any actual Mod developers working on Linux at the moment.

This is the main source of problems with Linux version: there is no programmer who lives on Linux daily.

People who never run native Linux cannot change things like glx-specific antialiasing.



#9 Atomica

Atomica

    Member

  • Member
  • PipPip
  • 66 posts

Posted 21 March 2018 - 04:50 AM

Well I can't blame people for not wanting to use Linux as their daily driver, especially if they're gamers. It does seem disappointing that given all the work Valve and the community have done to try to make Linux more enticing an OS for anyone pissed off with Windows/Microsoft shenanigans, it's still statistically insignificant in terms of desktop usage. I was kinda hoping we'd have more diversity in terms of desktop usage by 2018, but that just hasn't happened.

 

Anyways, this is starting to get to a rant so thanks all. I'm kinda surprised TDM even runs on Linux at this point given no-one really touches the Linux code much, but it's still important that it runs at all, if only to allow everyone the opportunity to enjoy this great mod.


Edited by Atomica, 21 March 2018 - 05:12 AM.

Oh my God! JC! A bomb!


#10 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7462 posts

Posted 21 March 2018 - 05:30 AM

Well I can't blame people for not wanting to use Linux as their daily driver, especially if they're gamers. It does seem disappointing that given all the work Valve and the community have done to try to make Linux more enticing an OS for anyone pissed off with Windows/Microsoft shenanigans, it's still statistically insignificant in terms of desktop usage. I was kinda hoping we'd have more diversity in terms of desktop usage by 2018, but that just hasn't happened.

 

I use Linux as my daily desktop, but even I reboot into Windows if I want to play games. It's certainly nice to discover a game supports Linux (TDM even runs on the open-source AMD drivers, which is great, although the engine dates from 2004 so it is hardly likely to tax modern GPUs), but the majority of games are Windows only so I rarely invest time in maintaining my Linux desktop as a gaming environment.

 

The thing is though, desktop on the whole is on its way out. The average non-gaming user is more likely to be using a smart device or tablet these days, not a Windows desktop, and since most tablets are either iOS or Android, the Windows monopoly essentially has ended, just not in the way desktop users would like.



#11 Abusimplea

Abusimplea

    Member

  • Member
  • PipPip
  • 309 posts

Posted 21 March 2018 - 03:25 PM

 

I use Linux as my daily desktop, but even I reboot into Windows if I want to play games.

Me too. Only Factorio i play on my Gentoo.

 

I don't think, the gaming community has the option to clinch to Windows much longer though. Windows was the perfect gaming environment but Microsoft seems to be willing to kill it. They do what they can to make it a hostile plattform for gamers. Seems odd because the gaming community loved to use Windows before 8 and 10.

Windows 7 will stop receiving security updates in January 2020. By then we should have switched to something else.

 

React OS does not look like it will be ready for AAA-Gaming by then. So its either OS X or Linux. Installing OS X on mainstream PC hardware still is for experts only - while today everyone and her aunt can install Ubuntu on any PC...






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users