Author Topic: [GAMES] Quake II RTX!  (Read 9908 times)

Hasturtium

  • Full Member
  • ***
  • Posts: 155
  • Karma: +10/-0
    • View Profile
[GAMES] Quake II RTX!
« on: January 15, 2023, 12:16:10 am »
I can't believe I'm typing this, but - with some caveats - Quake II RTX compiles and runs under Fedora 37 with an RDNA2 Radeon on Power9. The gotchas:

* If you're copying your Windows folder over and you care about preserving your saved games, make sure the contents of Q2RTX/baseq2/save are moved to ~/.quake2rtx/baseq2/save. If you don't, and you leave the Windows save folder intact, the executable will throw an error when trying to load a new game or save because it can't rectify the presence of the Windows folder with the presence of the Linux folder.
* For some reason I can't get timedemo functionality to work - attempting to load a timedemo from the console results in "Couldn't load maps/demo1.dm2.bsp: No such file or directory".
EDIT: * The game may bomb out at startup complaining that it can't find a Vulkan-capable GPU (despite the logs indicating it successfully queried both your Vulkan GPU as well as llvmpipe). In that case, manually edit ~/.quake2rtx/baseq2/q2config.cfg and change the line seta ray_tracing_api value from "auto" to "query". I tried setting this to “pipeline” on a lark to test the other raytracing method it supports, and that crashes the executable because it apparently can’t find the extensions it’s looking for.

Nevertheless it runs at around 60 fps at 1080p on an RX 6600 with resolution scaling set to 65%, which doesn't trail the Windows version with the same card too much at all. There is some minor visual corruption at the periphery of the screen, but with some more testing and bugfixes that can probably be fixed. Back to Stroggos I go...
« Last Edit: January 15, 2023, 03:56:50 pm by Hasturtium »

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +35/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: [GAMES] Quake II RTX!
« Reply #1 on: January 15, 2023, 03:53:42 pm »
Coooool. Got a screenshot?

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [GAMES] Quake II RTX!
« Reply #2 on: January 15, 2023, 07:21:58 pm »
I can't believe I'm typing this, but - with some caveats - Quake II RTX compiles and runs under Fedora 37 with an RDNA2 Radeon on Power9. The gotchas:

* If you're copying your Windows folder over and you care about preserving your saved games, make sure the contents of Q2RTX/baseq2/save are moved to ~/.quake2rtx/baseq2/save. If you don't, and you leave the Windows save folder intact, the executable will throw an error when trying to load a new game or save because it can't rectify the presence of the Windows folder with the presence of the Linux folder.
* For some reason I can't get timedemo functionality to work - attempting to load a timedemo from the console results in "Couldn't load maps/demo1.dm2.bsp: No such file or directory".
EDIT: * The game may bomb out at startup complaining that it can't find a Vulkan-capable GPU (despite the logs indicating it successfully queried both your Vulkan GPU as well as llvmpipe). In that case, manually edit ~/.quake2rtx/baseq2/q2config.cfg and change the line seta ray_tracing_api value from "auto" to "query". I tried setting this to “pipeline” on a lark to test the other raytracing method it supports, and that crashes the executable because it apparently can’t find the extensions it’s looking for.

Nevertheless it runs at around 60 fps at 1080p on an RX 6600 with resolution scaling set to 65%, which doesn't trail the Windows version with the same card too much at all. There is some minor visual corruption at the periphery of the screen, but with some more testing and bugfixes that can probably be fixed. Back to Stroggos I go...

That's interesting that you could get it loaded. It does not really work for me. 1stly I need to enable the raytracing flag for mesa. 2ndly the game came back with error "This GPU is not supported"
Faithful Linux enthusiast

My Raptor Blackbird

power9mm

  • Full Member
  • ***
  • Posts: 103
  • Karma: +8/-3
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #3 on: January 15, 2023, 07:23:26 pm »
Nice theres a competent benchmark for the system now.. i was going with an older card for my build for now but i'd definitely like to try vulkan raytracing. maybe in a  year or two when support is more stable.

Hasturtium

  • Full Member
  • ***
  • Posts: 155
  • Karma: +10/-0
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #4 on: January 16, 2023, 09:31:11 am »
I can't believe I'm typing this, but - with some caveats - Quake II RTX compiles and runs under Fedora 37 with an RDNA2 Radeon on Power9. The gotchas:

* If you're copying your Windows folder over and you care about preserving your saved games, make sure the contents of Q2RTX/baseq2/save are moved to ~/.quake2rtx/baseq2/save. If you don't, and you leave the Windows save folder intact, the executable will throw an error when trying to load a new game or save because it can't rectify the presence of the Windows folder with the presence of the Linux folder.
* For some reason I can't get timedemo functionality to work - attempting to load a timedemo from the console results in "Couldn't load maps/demo1.dm2.bsp: No such file or directory".
EDIT: * The game may bomb out at startup complaining that it can't find a Vulkan-capable GPU (despite the logs indicating it successfully queried both your Vulkan GPU as well as llvmpipe). In that case, manually edit ~/.quake2rtx/baseq2/q2config.cfg and change the line seta ray_tracing_api value from "auto" to "query". I tried setting this to “pipeline” on a lark to test the other raytracing method it supports, and that crashes the executable because it apparently can’t find the extensions it’s looking for.

Nevertheless it runs at around 60 fps at 1080p on an RX 6600 with resolution scaling set to 65%, which doesn't trail the Windows version with the same card too much at all. There is some minor visual corruption at the periphery of the screen, but with some more testing and bugfixes that can probably be fixed. Back to Stroggos I go...

That's interesting that you could get it loaded. It does not really work for me. 1stly I need to enable the raytracing flag for mesa. 2ndly the game came back with error "This GPU is not supported"

It came up pretty easily with my RX 6600 with the 6.1.5 kernel that was pushed out over the weekend. Biggest thing to do is to manually edit that line in the config file in the original post to specify "query" versus "auto" - I think something in Quake II’s feature polling mechanism breaks when it can't find the "pipeline" method it's looking for exposed in the driver. Give it a try and let me know what you think... It'll be a lot more interesting to see this on Intel's xe driver for Arc cards in a few months' time, given that their early fork of the old i915 driver already comes up on arm64. Intel’s raytracing speed is much more competitive with Nvidia’s - having tried an A750 and the RX 6600 in Windows, it isn’t a stretch to say Intel’s card manages at least as well at 1440p as the Radeon does at 1080p.

ClassicHasClass, I'll be happy to in a bit.
« Last Edit: January 16, 2023, 11:20:24 am by Hasturtium »

Hasturtium

  • Full Member
  • ***
  • Posts: 155
  • Karma: +10/-0
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #5 on: January 18, 2023, 07:15:02 pm »
So. Screenshots.





Not much to start, but I can provide more soon. Performance is kinda variable and slower than it is in Windows, but it's still entirely doable. As said before I'd expect Arc support via the xe driver to be much faster whenever that lands. Early days - I'd expect subsequent Mesa revisions to continue improving speed for RDNA2 on Power.
« Last Edit: January 19, 2023, 10:34:46 am by Hasturtium »

power9mm

  • Full Member
  • ***
  • Posts: 103
  • Karma: +8/-3
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #6 on: January 19, 2023, 12:41:40 pm »
well now I'd like to get a new gpu to play it, but i think i'll wait a bit for driver updates.. Still one of the best gaming benchmarks out there, and runs on POWER too..

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +35/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: [GAMES] Quake II RTX!
« Reply #7 on: January 19, 2023, 01:15:03 pm »
Yeah, some glitches, but not many. Looks way better than the original.

power9mm

  • Full Member
  • ***
  • Posts: 103
  • Karma: +8/-3
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #8 on: January 21, 2023, 08:32:07 am »
should I wait for the intel arc gpu drivers over AMD? i've wanted to play this since it came out and I'd rather wait for power9 support to play it. I might opt for an a770 gpu over an AMD card if it plays well. Maybe a bit off topic but should one even trust an intel gpu moreso over an amd/nvidia lol..?

Hasturtium

  • Full Member
  • ***
  • Posts: 155
  • Karma: +10/-0
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #9 on: January 21, 2023, 03:45:46 pm »
should I wait for the intel arc gpu drivers over AMD? i've wanted to play this since it came out and I'd rather wait for power9 support to play it. I might opt for an a770 gpu over an AMD card if it plays well. Maybe a bit off topic but should one even trust an intel gpu moreso over an amd/nvidia lol..?

In x86_64 land Intel’s the gold standard for open video drivers - hassle-free, exposed features that work without too much fuss, and as well-behaved as the hardware’s capabilities allow. They’re at an inflection point now that xe is being forked from i915 to provide dedicated support for 12th Gen and Arc hardware, but they have a funded and capable driver team and it’ll probably come up pretty fast. I can’t tell you where to spend your money, but once Arc has become a going concern on ppc64le I’m planning to swap the RX 6600 into my Windows machine so the Arc can be in my Blackbird. The video encoding is stupid good - if I can get OBS working, that’ll make everything from Blu-Ray transcoding to desktop capture overwhelmingly nicer on the platform for me.

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [GAMES] Quake II RTX!
« Reply #10 on: January 22, 2023, 06:59:22 am »
Finally get the game working! Yay!
Faithful Linux enthusiast

My Raptor Blackbird

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [GAMES] Quake II RTX!
« Reply #11 on: January 22, 2023, 07:00:41 am »
The q2rtxded was complaining about "Could not load library gamex86.so" so what I did is I copy my `gameppc64le.so` to `gamex86.so`. Not the best way but I could not find much details how the game workout the library filename.
« Last Edit: August 17, 2023, 06:13:50 am by tle »
Faithful Linux enthusiast

My Raptor Blackbird

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [GAMES] Quake II RTX!
« Reply #12 on: January 22, 2023, 07:06:08 am »
Btw I submitted a Pull Request upstream https://github.com/NVIDIA/Q2RTX/pull/260
Faithful Linux enthusiast

My Raptor Blackbird

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +35/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: [GAMES] Quake II RTX!
« Reply #13 on: January 22, 2023, 12:42:58 pm »
@tle, also being a Fedoran, which card and which kernel (I'm currently on 6.1.6)?

Hasturtium

  • Full Member
  • ***
  • Posts: 155
  • Karma: +10/-0
    • View Profile
Re: [GAMES] Quake II RTX!
« Reply #14 on: January 22, 2023, 03:12:14 pm »
The game was complaining about "Could not load library gamex86.so" so what I did is I copy my `gameppc64le.so` to `gamex86.so`. Not the best way but I could not find much details how the game workout the library filename.

Ack! I forgot to mention that step. I could’ve sworn mine compiled to gamex86_64.so, but I copied the file to gamex86.so and then it didn’t give me any hassle.

@tle, also being a Fedoran, which card and which kernel (I'm currently on 6.1.6)?

I’m running on 6.1.6 with an XFX Radeon RX 6600, though it also worked with kernel 6.1.5. Both have worked with Fedora’s current Mesa release. Reported framerate didn’t necessarily correlate to onscreen framerate, though it did become more consistent when vsync was enabled. It’ll be interesting to see how this improves as time goes on.
« Last Edit: January 22, 2023, 03:17:16 pm by Hasturtium »