Stray
Road Jul 25, 2022 @ 9:17am
[Tutorial] Enabling RayTracing in Stray
Hello,

Just a quick tutorial for enabling RayTracing in Stray, please not that the game isn't optimized to run with RayTracing and you can expect to have some visual bugs.

Firstly open explorer and go to:
%localappdata%\Hk_project\Saved\Config\WindowsNoEditor

Then open the file called Engine.ini and paste these lines at the end of the file
[/script/windowstargetplatform.windowstargetsettings] DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 [/script/engine.renderersettings] r.RayTracing=true ;You can set values to true/false below for enabling/disabling some raytracing features r.RayTracing.Reflections=true r.RayTracing.AmbientOcclusion=true r.RayTracing.Culling=false r.RayTracing.EnableMaterials=true r.RayTracing.GlobalIllumination=true r.RayTracing.Reflections=true r.RayTracing.SceneCaptures=true r.RayTracing.Shadows=true r.RayTracing.SkyLight=true r.RayTracing.Translucency=true
Edit: steam seems to format incorrectly some characters, here is the full Engine.ini just in case
https://pastebin.com/RP9iCQVE

Save the file (CTRL+S) or File>Save

More settings can be found here:
https://digilander.libero.it/ZioYuri78/

Now you can launch the game, and profit :)
Last edited by Road; Jul 25, 2022 @ 9:21am
< >
Showing 1-15 of 21 comments
BagOfBones-21403 Jul 27, 2022 @ 1:08am 
Nice post!

It seems to work but tanks my FPS immensely down to unplayable on my 2080RTX, but maybe it's nice for screenshots once I'm further in the game.
GmoLargey Jul 27, 2022 @ 6:26am 
Isn't the game dx11?
skjfhniasubcoivu Jul 27, 2022 @ 8:14am 
Originally posted by GmoLargey:
Isn't the game dx11?
Only on Windows 10. It's UE4 and DX12 that's giving people the most trouble with these stutters. That's why only some people are noticing it.
I added r.CreateShadersOnLoad=1


Also: I would suggest to play around with r.RayTracing.Reflections.ScreenPercentage for the RT reflections.



Originally posted by skjfhniasubcoivu:
Originally posted by GmoLargey:
Isn't the game dx11?
Only on Windows 10. It's UE4 and DX12 that's giving people the most trouble with these stutters. That's why only some people are noticing it.

I added r.CreateShadersOnLoad=1, which leads to some big freezes here and there, but gets rid of most of the "little" stutters... not a solution, but better than nothing
Wylie28 Aug 2, 2022 @ 2:47pm 
Does it even look good? None of the materials had RT in mind.
Originally posted by Wylie28:
Does it even look good? None of the materials had RT in mind.

That's also because the game doesn't support dedicated raytracing yet, if at all


This what actually enabling "raytracing" in Stray looks like. btw the user ini does nothing if a setting is already enumerated in the game default .ini pak manifest.

https://steamcommunity.com/sharedfiles/filedetails/?id=2844081436

all those static moire pixels are actually trying to reflect lighting probes that don't exist, hence the massive noise on every normal map in the entire game.

https://steamcommunity.com/sharedfiles/filedetails/?id=2844081448

dx12 in Stray supports lightmap based GI and IBL, dx11 supports IBL which already allows for full scene reflection maps/probes.


meanwhile in dx12 under GI:

https://steamcommunity.com/sharedfiles/filedetails/?id=2844081459

Notice the bounced lighting on security bot and kiosk underside. What bluetwelve planned to do and what they finished before launch are two different things, nevermind this is technically a console port.
Last edited by Grr. [SG CMD] Majah Lazah; Aug 6, 2022 @ 1:36am
Avyctes Aug 3, 2022 @ 3:22pm 
DX12 is I'm guessing a pet project by one of the developers because it's there, it works, but at a massive performance cost. I play on a 3080 and just switching between DX11 and 12 lowers my framerate by about 100, I kid you not. Nevermind what further cost in performance comes from editing that .ini file.
Last edited by Avyctes; Aug 3, 2022 @ 3:22pm
Surveyor Aug 3, 2022 @ 8:29pm 
Originally posted by Avyctes:
DX12 is I'm guessing a pet project by one of the developers because it's there, it works, but at a massive performance cost. I play on a 3080 and just switching between DX11 and 12 lowers my framerate by about 100, I kid you not. Nevermind what further cost in performance comes from editing that .ini file.
Do you get at least in the double digits at all with DX12 and the .ini settings above? I can barely reach 5 fps with my 3070 Ti... But at least the picture looks massively different to DX11 (don't seem to be able to turn on ray tracing there).

Also, DX12 seems to ruin the "native" HDR.
Shimonhead Aug 5, 2022 @ 11:37am 
Supposedly this works...

Just open Steam and add the “-dx12” launch parameter to the game.
Surveyor Aug 5, 2022 @ 12:41pm 
Originally posted by Shimonhead:
Supposedly this works...

Just open Steam and add the “-dx12” launch parameter to the game.
Far as I'm aware, you don't need to with the "DefaultGraphicsRHI=DefaultGraphicsRHI_DX12" part.
Shimonhead Aug 5, 2022 @ 1:28pm 
Originally posted by Surveyor:
Originally posted by Shimonhead:
Supposedly this works...

Just open Steam and add the “-dx12” launch parameter to the game.
Far as I'm aware, you don't need to with the "DefaultGraphicsRHI=DefaultGraphicsRHI_DX12" part.

Oh, ok cool.
Terepin Aug 5, 2022 @ 1:30pm 
Enabling DX12 is enough, as Ray Tracing is turned on automatically under it.
Avyctes Aug 20, 2022 @ 1:29pm 
Originally posted by Surveyor:
Do you get at least in the double digits at all with DX12 and the .ini settings above? I can barely reach 5 fps with my 3070 Ti... But at least the picture looks massively different to DX11 (don't seem to be able to turn on ray tracing there).
With my 3080 and 5800X I get about 30 fps in dx12 mode, though there's also large drops in some areas. It's not what I call playable even on this high end pc.
Surveyor Aug 21, 2022 @ 1:18am 
Originally posted by Avyctes:
Originally posted by Surveyor:
Do you get at least in the double digits at all with DX12 and the .ini settings above? I can barely reach 5 fps with my 3070 Ti... But at least the picture looks massively different to DX11 (don't seem to be able to turn on ray tracing there).
With my 3080 and 5800X I get about 30 fps in dx12 mode, though there's also large drops in some areas. It's not what I call playable even on this high end pc.
Still much better than 5 fps though...
BongFartz Jul 24, 2023 @ 7:57am 
why are there 2 reflection settings?
< >
Showing 1-15 of 21 comments
Per page: 1530 50