From f399997976d720b4b7f5437994ea4ddb7375ed7d Mon Sep 17 00:00:00 2001 From: phkahler <14852918+phkahler@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:37:10 -0400 Subject: [PATCH] Speed up view change animations --- src/graphicswin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphicswin.cpp b/src/graphicswin.cpp index 29e5b7aeb..e91f094dc 100644 --- a/src/graphicswin.cpp +++ b/src/graphicswin.cpp @@ -504,11 +504,11 @@ void GraphicsWindow::AnimateOnto(Quaternion quatf, Vector offsetf) { // Animate transition, unless it's a tiny move. int64_t t0 = GetMilliseconds(); int32_t dt = (mp < 0.01 && mo < 10) ? (-20) : - (int32_t)(100 + 1000*mp + 0.4*mo); - // Don't ever animate for longer than 2000 ms; we can get absurdly + (int32_t)(100 + 600*mp + 0.4*mo); + // Don't ever animate for longer than 800 ms; we can get absurdly // long translations (as measured in pixels) if the user zooms out, moves, // and then zooms in again. - if(dt > 2000) dt = 2000; + if(dt > 800) dt = 800; Quaternion dq = quatf.Times(quat0.Inverse()); if(!animateTimer) {