# Solved : Cant Enable RayTracing in UE5 (gtx 1060)(Nvidia Pascal)

**URL:** <https://forums.unrealengine.com/t/solved-cant-enable-raytracing-in-ue5-gtx-1060-nvidia-pascal/231479>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0\
**Created:** [May 27, 2021, 5:52am UTC](https://forums.unrealengine.com/t/solved-cant-enable-raytracing-in-ue5-gtx-1060-nvidia-pascal/231479 "2021-05-27T05:52:07Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Julian\_Stys](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Julian\_Stys](https://forums.unrealengine.com/u/Julian_Stys)\
**Post date:** [February 24, 2022, 1:14am UTC](https://forums.unrealengine.com/t/solved-cant-enable-raytracing-in-ue5-gtx-1060-nvidia-pascal/231479/24 "2022-02-24T01:14:38Z")

</div>

I got path tracing to work on my 1080 ti with UE5 early access by adding “r.D3D12.DXR.AllowEmulatedRayTracing=1” into my DefaultEngine.ini. Unfortunately, Epic removed this console variable in UE5 Preview which deprecates ray tracing (and therefore path tracing) for all GTX 10 series cards. I found a very hacky workaround which is very annoying to setup, but works well enough until Epic addresses this issue.

1. This method involves building UE5 from source, so follow the steps needed to gain access to UE5’s source code. ([Downloading Unreal Engine Source Code | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/DownloadingSourceCode/))
2. After installing the source code on your comp, navigate to this file from the root directory of the source code: Engine/Source/Runtime/D3D12RHI/Private/Windows/WindowsD3D12Device.cpp
3. Open the file, and change the line that says:  
#define DXR\_ALLOW\_EMULATED\_RAYTRACING 0  
to  
#define DXR\_ALLOW\_EMULATED\_RAYTRACING 1  
This will allow you to access this cvar from withing UE5 Preview.
4. Compile the source code, and you’re done! You should be able to set this cvar from within the custom built UE5

---

_[View the full topic](https://forums.unrealengine.com/t/solved-cant-enable-raytracing-in-ue5-gtx-1060-nvidia-pascal/231479)._
