Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Categories
- All Discussions1,524
- General534
- Graphics109
- GPU Computing419
- Mobile141
- Pro Graphics163
- Tools158
In this Discussion
- Coppell Plumbing February 9
- Detlef Roettger February 9
- James Bigler February 7
- mcleary February 9
- Tony Carrillo February 9
Tags in this Discussion
- optix 119
Performance drop when loading textures samplers into OptiX
-
I have a simple scene composed by a plane with 6 vertices and 4 triangles. The plane geometry and textures are loaded as OpenGL objects and registered for use within OptiX. This plane uses 4 1024x1024 textures in its material. I already know that OptiX doesn't support mipmaps and my performance issues might be from incoherent texture cache accesses. If I reduce my textures to 512x512, my performance increase is significant (look below).
Texture dimension Frame Rate
1024x1024 49 fps
512x512 87 fps
My question is why OptiX is spending time runing a ray generation program that does nothing but fill my output buffer with a fixed color?
I suspect that, in each frame, OptiX need to copy texture data from OpenGL to its execution context, but, 4 textures of size 1024x1024 can give this overhead even not sampling anything?
Here is my ray generation programRT_PROGRAM void pinhole_camera() {
output_buffer[ launch_index ] = make_uchar4( 255, 0, 255, 255 );
}
My system has 2 GTX580 with SLI disabled. -
8 Comments sorted by
-
If you are using OpenGL interop in a multiGPU environment, then there's no way for OptiX to know if you have changed the OpenGL buffers/textures, so each frame it must copy the data from one GPU to the other.
-
If I do not specify anything to OptiX about multiple GPUs, it will try to use both? If so, if I set the number of GPUs as one, will my performance increase a little bit?
-
"If I do not specify anything to OptiX about multiple GPUs, it will try to use both?"
Basically yes, the default is to use all GPUs of the newest streaming multiprocessor version. -
Thanks, I'll check on that.
I thought that my performance numbers were that low due to some configuration, however, the sample simpleOpenGLTexInterop stay around 100 fps in my machine. -
SPAM removed by moderator.
-
It is really a spam?
-
Yes, just flag these when you see them (already done) and the next time an admin logs in, that account will get deleted.
-
This account has been banned