static osg::Timer* sendMsgTimer = new osg::Timer;
if (sendMsgTimer->time_m()>100)//100ms
{
// do what you want
sendMsgTimer->setStartTick();//重置
}
osg::NodeVisitor* nv
nv->getFrameStamp()->getReferenceTime();
时间: 2024-10-07 03:09:08