Vertex shader performance problem
Hello,
I have just started experimenting with vertex shaders and I have a performance problem. Below is an example program that shows my problem: Code:
import viz Greetings, Joran. |
I don't think you are doing anything wrong. I tried your sample code and my draw time is 0.04 using a GeForce 8800 GTS. This might be an issue with your OpenGL drivers.
FYI, you don't have to create your own elapsed time uniform. OpenSceneGraph supplies the following global uniforms that you can use in any shader: Code:
int osg_FrameNumber; Code:
import viz |
I updated my driver and now it works as expected. And I now also use the osg global uniforms. Thanx.
Greetings, Joran. |
All times are GMT -7. The time now is 02:04 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC