My simple raytracer is 10x faster than NVidia OptiX!

21.10.2009 05:20 in raytracing, 3D graphics

rt-dabroz.jpgrt-nvidia.jpg

It's frustrating. I coded this sample about month ago. But the very next day I've upgraded my system to 64-bit Windows 7 and my raytracer magically refused to work. Finally I've got some time to fix it and post.

Basically it's the same demo that NVidia's using to promote OptiX. First of all, you can run OptiX samples on GeForce cards (not only QuadroFX) by disabling video card name check (very sneaky, NVidia!). So did I. And NVidia sample was running at 3-4 FPS, but it needs a lot of frames to produce final results (it's simillar to progressive JPEG). On the other hand, my very simple raytracer coded in CUDA easily hits VSync (60 FPS) using higher resolution and instant multisampling. Sure, my raytraces is not pixel accurate with OptiX, but its a matter of setting lights, objects positions and other stuff. And why does OptiX perform so bad? I have no idea.

You will probably have a lot of problem running these demos (I have no luck with release builds). But if you have Visual Studio and CUDA SDK you have chances. x86 build runs fine on 32bit Windows XP. x64 build runs on 64-bit Windows 7 (and probably Vista). Visuals in x64 versions are somewhat different from image in my post, because I needed to backport some code.

PS. I love 7 driver model. NVidia drivers (191.07 in my case) are still very buggy (or rather unstable) when running CUDA code, and automatic driver restart is much better than total system crash.

PS2. I'll try to find some more time and finally post my OpenGL 3.2 multisample demo source code.

Comments:

  1. Riddlemaster

    Riddlemaster:

    Well as for the driver model it is similar in Vista. In the majority of cases it just restarts (ok, I managed to crash system a few times doing some crazy stuff ;) ). As for the demo - congrats but as far as I remember you promised to provide more complicated scene one day :)

    21.10.2009 10:29:29

  2. oscarbg

    oscarbg:

    Impressive stuff..
    It's great that I have access to private builds of Optix and since the post of Nvidia OptiX demos they have released new releases with better performance..
    Also I have been reading their programming guide and I suspect some performance is lost as their engine is very general..
    From what I think by the time they release I suspect they would be able to at least double the performance or triple it of what you have seen..
    The remaining performance can be lost for the scope of generality..
    Also would be good if can you release the code to see have you achieved that!
    Thanks

    23.10.2009 03:46:11

Leave comment: