Render time of OptiX SDK program is too slow


I tried running optixPathTracer from the OptiX 8.0.0 SDK on Windows 11 & RTX 4060Ti, but could only get 0.1~0.2 frames for second.

I found another person getting more than 60 fps on the same program from OptiX 7.2.0 SDK using Windows 10 & RTX 2080Ti, so I feel like this is an unreasonably slow render time.

What am I missing? What should i do to improve the render time?

Hi @friskneoaddict!

That’s a debug build I suppose.

The CUDA debug code is super slow. In CMakeLists.txt:

remove or comment out
optix_add_cuda_flag_config( _${config} “-G” )
and
optix_add_cuda_flag( “-G” )

and rebuild.

This solved the issue! Thank you!

Turns out it was just a stupid beginner’s mistake.

According to CMakeLists.txt, it’s supposed to build in debug mode only when it is toggled inside Visual Studio (which i unintentionally did), so it worked just fine when i changed it to release mode.
image

Just pointing out that by removing the -G option you can run debug builds at decent speed, you just will debug host code only.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.