Home > Back-end >  Release the fastest optimization
Release the fastest optimization

Time:11-20

VectorInitialRadars (Config/RadarsConfig. XML, radars);
For (int I=0; i {
Int result=radars [I] InitDataReader ();//initialize the radar
If (result==1)
{
I -;
Sleep (2000);
}
}
While (1)
{
FrameTime=TuioTime: : getSystemTime ();//get the system time
TuioServer - & gt; InitFrame (frameTime);
TuioServer - & gt; StopUntouchedMovingObjects ();//stop moving objects
For (int I=0; i {
Radars [I]. The run ();
}
UST10LXLaserSensor: : mergeAndSendData (radars);
Int delay=20 - (TuioTime: : getSystemTime () getTotalMilliseconds () - frameTime. GetTotalMilliseconds ());
If (delay & gt; 0) SDL_Delay (delay);
}

This is my code, including UST10LXLaserSensor: : mergeAndSendData (radars); Call the debug mode when the radars. The size (size of 1), the release mode size is 0, I do not know why it, seek help from bosses
  • Related