>From running
NVidia <span>Nsight, I traced down periodic stalls to the
<span><span><span><span><span>glGetInteger64v</span></span></span></span></span>
on frameCompleted(). This was especially true if I had multiple OSG windows running at the same time. This is on Windows. Basically its in the code: </span>
<br>
<div><span><span><span><span><br></span></span></span></span></div><div><span><span><span><span>State.cpp</span></span></span></span></div><div><span><span><span><span><br></span></span></span></span></div><div><span><span><span><span></span></span></span></span></div><span><span><span><span><span style="font-family: Courier New;">void <span>State::frameCompleted</span>()</span></span><span style="font-family: Courier New;">
</span></span><span style="font-family: Courier New;">
<span>
</span></span></span></span><span style="font-family: Courier New;"><span><span><span><br>{</span>
</span>
<span>
</span></span><span><span><span><span><br> <span>if</span> (<span>getTimestampBits</span>())</span>
</span>
<span>
</span></span></span><span><span><span><span><br> {</span>
</span>
<span>
</span></span></span><span><span><span><span><br> GLint64 timestamp;</span>
</span>
<span>
</span></span></span><span><span><span><span><br> <b>_glExtensions-><span>glGetInteger64v</span>(GL_TIMESTAMP, ×tamp);</b></span><b>
</b></span><b>
<span>
</span></b></span></span><span><span><span><span><br> <span>setGpuTimestamp</span>(<span>osg::Timer::instance</span>()-><span>tick</span>(), timestamp);</span>
</span>
<span>
</span></span></span><span><span><span><span><br> <span><span>//</span>OSG_NOTICE<<"State::frameCompleted() setting time stamp. timestamp="<<timestamp<<std::endl;</span></span>
</span>
<span>
</span></span></span><span><span><span><span><br></span></span></span></span></span><div><span style="font-family: Courier New;"><span><span><span><span> }</span>
</span>
<span>
</span></span></span>} <br></span></div><div><span style="font-family: Courier New;"><br></span></div><div><span style="font-family: Courier New;"><font face="Sans Serif">2 questions, if I am not currently collecting stats, are there any known side effects for disabling the stat collection? Second what would be the preferable way of disabling the stat collection.
<span><span><span><span><span><span>getTimestampBits</span>()</span></span></span></span></span>, basically checks if the system supports 64 bit time stamp.
I added a static public variable to State to disable the time stamp collection just to make a deadline, this is obviously not an ideal way of doing this. It did however take care of my periodic hangs, and let me make my deadline. </font><br></span></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/20010616-2c89-4228-90fc-96880430f3b2n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/20010616-2c89-4228-90fc-96880430f3b2n%40googlegroups.com</a>.<br />