mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:23:06 +02:00
Fix one frame lag in AnimDebugDraw
This commit is contained in:
parent
995958a8f0
commit
007a3c5134
1 changed files with 2 additions and 5 deletions
|
@ -2935,11 +2935,6 @@ void Application::update(float deltaTime) {
|
||||||
loadViewFrustum(_myCamera, _viewFrustum);
|
loadViewFrustum(_myCamera, _viewFrustum);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update animation debug draw renderer
|
|
||||||
{
|
|
||||||
AnimDebugDraw::getInstance().update();
|
|
||||||
}
|
|
||||||
|
|
||||||
quint64 now = usecTimestampNow();
|
quint64 now = usecTimestampNow();
|
||||||
|
|
||||||
// Update my voxel servers with my current voxel query...
|
// Update my voxel servers with my current voxel query...
|
||||||
|
@ -3499,6 +3494,8 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se
|
||||||
myAvatar->preRender(renderArgs);
|
myAvatar->preRender(renderArgs);
|
||||||
myAvatar->endRender();
|
myAvatar->endRender();
|
||||||
|
|
||||||
|
// Update animation debug draw renderer
|
||||||
|
AnimDebugDraw::getInstance().update();
|
||||||
|
|
||||||
activeRenderingThread = QThread::currentThread();
|
activeRenderingThread = QThread::currentThread();
|
||||||
PROFILE_RANGE(__FUNCTION__);
|
PROFILE_RANGE(__FUNCTION__);
|
||||||
|
|
Loading…
Reference in a new issue