HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.75k stars 183 forks source link

jsut qeustion not a bug report #1992

Open testc2n14 opened 1 month ago

testc2n14 commented 1 month ago

yeah sorry for making it a bug report but i didn;t know where else to go to just ask a few question. basically all i want to know is if i can use the to add hardware accelerators mainly ray tracing accelerators on rdna2 gpus to proton games

Blisto91 commented 1 month ago

This is just a translation layer for running Direct3D 12 games via a Vulkan driver. It doesn't add any extra functionality to the games.

testc2n14 commented 1 month ago

ahh so i can assume the outputeed vulkan will not use the raytracing hardware on my gpu even tho in windows via d3d 12 it dose. if so is their any other tool i can use or do i have to run via vm with gpu passthrew

mbriar commented 1 month ago

so i can assume the outputeed vulkan will not use the raytracing hardware on my gpu

it's up to the vulkan driver to use the hardware for ray tracing, and all amd vulkan drivers will do that. There are no extra tools you need to use. However, that doesn't mean performance will always be on-par with windows, but that's not because the hardware is not used.

Blisto91 commented 1 month ago

If the game supports hardware Ray Tracing on Windows then it will also support hardware Ray Tracing with vkd3d-proton. Thought you were asking if it could add it to games that didn't support it

testc2n14 commented 1 month ago

no it;s just that with proton it dosen;t use hardware acceleration so i wanted to see if i could use this to add it to games that support it on windows but not via proton

Blisto91 commented 1 month ago

Proton does support hardware accelerated RT. vkd3d-proton is a part of Proton. Which game and Proton version are you having issues with.

mbriar commented 1 month ago

with proton it dosen;t use hardware acceleration

why do you think that?

testc2n14 commented 1 month ago

becuae in persoan 3 reload in any room with RT preofrmnaces tanks to 5 fps when in windows it would go down the amount you would expect from turning on windows, 40 fps minpu msotly 50-60 fps in most rooms with RT. it's a a console port with very minimal pc fetures

testc2n14 commented 1 month ago

i can;t find a tool on linux to show me the actul utilization of any hardware accelerators expect the video decode and encode

mbriar commented 1 month ago

RDNA2 doesn't really have any "hardware accelerators" for RT anyways, just some extra intersection instructions, there is no tool to show it, either on windows or linux. Bad performance also doesn't mean that the hardware isn't used.

testc2n14 commented 1 month ago

no i jsut looks at the spec sheet for my gpu and it has 60 ray acirators https://www.amd.com/en/products/graphics/amd-radeon-rx-6800

mbriar commented 1 month ago

It has exactly as many "ray accelerators" as normal compute units because they are the same thing. Anyways, it's up to the vulkan driver to use the hardware as efficiently as possible, vkd3d-proton already uses the vulkan ray tracing extensions.

mbriar commented 1 month ago

Also, the bad performance in Persona 3 might not be because of RT at all but because of: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6260#note_2272979

You can try to run it with RADV_DEBUG=nongg as environment variable to see if that helps. Otherwise you can double check if it is indeed because of RT by just disabling it with VKD3D_CONFIG=nodxr.

testc2n14 commented 1 month ago

should i put thsoe intot he steam propties thing, and dose basic proton that i dwonalod via steam already have this implemented into it. also i can test the preformance with out RT as the game has that as one of it;s 4 graphic settings, (refecltions , render scale, res, and frame rate limit)

mbriar commented 1 month ago

Yes, you would add RADV_DEBUG=nongg %command% as launch option for the game in steam. Normal Proton has everything.

testc2n14 commented 1 month ago

well ty for all ur help

mbriar commented 1 month ago

Did RADV_DEBUG=nongg change anything?

testc2n14 commented 1 month ago

no it did not

pixelcluster commented 1 month ago

RDNA2 doesn't really have any "hardware accelerators" for RT anyways, just some extra intersection instructions

I don't see why these intersection instructions wouldn't count as hardware accelerators?

@testc2n14: Which Mesa version are you using? If you have vulkaninfo installed, you can check this by looking at the output of vulkaninfo --summary. There have been significant performance improvements for raytracing UE4 games like Persona 3 Reload in Mesa 24.0, perhaps upgrading to that version will help.