Duke-RT icon indicating copy to clipboard operation
Duke-RT copied to clipboard

[Feature] AMD GPU support

Open cscd98 opened this issue 7 months ago • 9 comments

Raze version

No response

Which game are you running with Raze?

Duke Nukem 3D

What Operating System are you using?

Linux x86_64

If Other OS, please describe

No response

Is your feature request related to a problem? Please describe.

Would be great to see AMD GPU support

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Add any other context or screenshots about the feature request here.

No response

cscd98 avatar Apr 26 '26 08:04 cscd98

Unfortunately, I don't have an AMD GPU to test with at the moment. If you launch with DLSS-SR/RR upscaling turned off, does it still fail? Here is how you can launch directly from command line with DLSS upscaling off and denoising turned back on:

launch-duke-rt.cmd +set vid_preferbackend 4 +set nri_api d3d12 +set nri_upscaler 0 +set nri_postsharpen 0 +set nri_denoise true +set nri_nrddenoiser 0

If you want vulkan instead of d3d12, user +set nri_api vulkan instead and you should be fine! Alternatively, if you want to edit launch-duke-rt.cmd to permanently launch that way, edit the second last line from:

"%RAZE_EXE%" -gamegrp "%DUKE_RT_GRP%" -file "%OVERLAY_DIR%" %GAME_ARGS%

to:

"%RAZE_EXE%" -gamegrp "%DUKE_RT_GRP%" -file "%OVERLAY_DIR%" +set vid_preferbackend 4 +set nri_api d3d12 +set nri_upscaler 0 +set nri_postsharpen 0 +set nri_denoise true +set nri_nrddenoiser 0 %GAME_ARGS%

postmemetic avatar May 11 '26 02:05 postmemetic

It works (kinda) on Windows11 on my RX9070XT

But the denoiser doesnt work fine. Many artifacts.

I played through Level 1 yesterday but now as I saved in Level2 I cant start the game anymore.

The log says something about

PT scene texture cap im Log: cap=512 scene_set=514 stage_textures=528

CrashReport.zip

DarkVamp avatar Jun 01 '26 20:06 DarkVamp

This happens with VULKAN and D3D12 as well

The 512 CAP is a real problem

DarkVamp avatar Jun 02 '26 08:06 DarkVamp

@postmemetic Any Update ?

DarkVamp avatar Jun 07 '26 12:06 DarkVamp

Oh just seeing this - thanks for testing on AMD! I'll take a look at your log and see if the texture number is actually the issue. If that's the main issue, it should be possible to tackle,

postmemetic avatar Jun 08 '26 03:06 postmemetic

@postmemetic As said it ran for the first level fine but then I saved and since then it won't start anymore. Log says the hard limit is the issue during startup.

DarkVamp avatar Jun 11 '26 05:06 DarkVamp

Oh just seeing this - thanks for testing on AMD! I'll take a look at your log and see if the texture number is actually the issue. If that's the main issue, it should be possible to tackle,

Any update yet ?

DarkVamp avatar Jun 15 '26 17:06 DarkVamp

I'm not actually sure if the issue is explicitly due to texture count or if it's somewhere else in the pipeline, and I don't have an AMD GPU to test with so I can't effectively gather more information. If the issue is really around texture count, the possible solutions would likely take a very large effort (rolling my own texture atlasing), but I can't even be sure that would actually fix it.

postmemetic avatar Jun 20 '26 00:06 postmemetic

Oh just seeing this - thanks for testing on AMD! I'll take a look at your log and see if the texture number is actually the issue. If that's the main issue, it should be possible to tackle,

Any update yet ?

Okay, so I may have actually addressed the issue! I was doing something wrong with buffer descriptors that may have been tripping validation. Please try things out with the latest build - https://github.com/postmemetic/Duke-RT/releases/tag/0.3.4

postmemetic avatar Jun 29 '26 01:06 postmemetic