Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit bb15dbe0 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Minor modification

parent 7bacd2cb
......@@ -895,16 +895,9 @@ void GLViewer::manageAnimations()
// Accurate measurement of the time elapsed since the last animation step.
double dt = 0.0;
if( m_AnimationsRunningAtPreviousFrame )
{
TimeMeasurement now = std::chrono::high_resolution_clock::now();
dt = 0.000001 * std::chrono::duration_cast< std::chrono::microseconds >( now - m_AnimationFrameTime ).count();
m_AnimationFrameTime = now;
}
else
m_AnimationFrameTime = std::chrono::high_resolution_clock::now();
TimeMeasurement now = std::chrono::high_resolution_clock::now();
double dt = 0.000001 * std::chrono::duration_cast< std::chrono::microseconds >( now - m_AnimationFrameTime ).count();
m_AnimationFrameTime = now;
// Make all active animated objects to execute a new animation step.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment