Hi, What's your GPU/driver? Is your shader GLSL or ARB FP? 0.5 second build times are way over anything I've seen. I've run apps that rebuild the shaders every frame (not a good idea, but not painful either). Why do you think it's the shader; could it be some other 1st-frame setup (eg displaylists) going on? Cheers -- mew
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Ivan Bolcina > Sent: Wednesday, March 28, 2007 8:43 AM > To: osg users > Subject: [osg-users] How to preload and precompile shader. > > Hi. > > I am using very simple fragment shader and it works great. But there is a > problem, when I first use ti on scene, it takes about half a sec to > initialize, so my whole app freezes for half a second. > > I would like to preload fragment shader and precompile it. Any ideas? > > Bye, ivan _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
