[cg] UE5 调试技巧

UE 中 rhi命令的提交是在render 线程,而graphics api 真正的执行是在rhi 线程, 今天想看下rhi的底层调用,但由于是通过task执行的,无法获取到render thread传入的地方,调试起来不太方便。

可通过开启下面的命令来调试

1. 让RDG进入立即执行模式:

; Uncomment to get render graph executing passes as they get created to easily debug crashes caused by pass wiring logic.
r.RDG.ImmediateMode=1

2. 关闭RHI多线程

; Uncomment to disable parallel rendering
r.RHICmdBypass=1

或者命令输入

r.RHIThread.Enable 0

你可能感兴趣的:(ue5)