aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@qt.io>2025-10-28 12:51:49 +0200
committerJoni Poikelin <joni.poikelin@qt.io>2025-11-26 14:05:22 +0200
commit88c83cbb0ea7793c09102688915b83d8e24d9ddc (patch)
tree412281b7e12d4631bfa1d90473d850d16e2ebef6 /src
parent2b7714f070fe7f28bfa3c5313a1fa1d0126e192b (diff)
Stop flooding the log with animation timer type
This variable used to be static and the logic still looks like it expects it to be so. Static was probably removed in an error. This causes unnecessary environment variable reading and logs being printed as this function is being called for every frame. Change-Id: Id24d9cfecb0f509f92cef47f6a95800ff529259b Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 1b118e2081..7cb7eda9a2 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -73,7 +73,7 @@ DEFINE_BOOL_CONFIG_OPTION(useElapsedTimerBasedAnimationDriver, QSG_USE_SIMPLE_AN
bool qsg_useConsistentTiming()
{
- int use = -1;
+ static int use = -1;
if (use < 0) {
use = !qEnvironmentVariableIsEmpty("QSG_FIXED_ANIMATION_STEP") && qgetenv("QSG_FIXED_ANIMATION_STEP") != "no"
? 1 : 0;