[osg-users] void State::frameCompleted()
david.h...@gmail.com
david.heitbrink at gmail.com
Wed Jan 13 08:12:30 PST 2021
>From running NVidia Nsight, I traced down periodic stalls to the
glGetInteger64v 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:
State.cpp
void State::frameCompleted()
{
if (getTimestampBits())
{
GLint64 timestamp;
*_glExtensions->glGetInteger64v(GL_TIMESTAMP, ×tamp);*
setGpuTimestamp(osg::Timer::instance()->tick(), timestamp);
//OSG_NOTICE<<"State::frameCompleted() setting time stamp.
timestamp="<<timestamp<<std::endl;
} }
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. getTimestampBits(),
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.
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/20010616-2c89-4228-90fc-96880430f3b2n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210113/562ac4f6/attachment.html>
More information about the osg-users
mailing list