diff options
author | Aram So <aram.so@lge.com> | 2016-03-03 10:55:23 +0900 |
---|---|---|
committer | Aram So <aram.so@lge.com> | 2016-03-07 14:48:20 +0000 |
commit | 3879b3f883dd66feddc190eb8bad330367a31ace (patch) | |
tree | f4052e2175923f46c851eedaaf8d350f8064533d /src/quick/scenegraph/qsgcontext.cpp | |
parent | 2f85907193ad934d911fe97f7000ecb0662de8cb (diff) |
Allow fixed animation step in QSGGuiThreadRenderLoop
This patch allows to enable the fixed animation step in
QSGGuiThreadRenderLoop if QSG_FIXED_ANIMATION_STEP is set.
Change-Id: I87ff26120283d93e9b8d08286a16990cf6d649ce
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: Aram So <aram.so@lge.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 6572ceb2ce..2ba16e7328 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -136,9 +136,9 @@ public: bool distanceFieldAntialiasingDecided; }; -static bool qsg_useConsistentTiming() +bool qsg_useConsistentTiming() { - static int use = -1; + int use = -1; if (use < 0) { use = !qEnvironmentVariableIsEmpty("QSG_FIXED_ANIMATION_STEP") && qgetenv("QSG_FIXED_ANIMATION_STEP") != "no" ? 1 : 0; |