more logs
diff --git a/include/rive/artboard.hpp b/include/rive/artboard.hpp index 18db9ec..c497e72 100644 --- a/include/rive/artboard.hpp +++ b/include/rive/artboard.hpp
@@ -102,6 +102,10 @@ bool m_didChange = true; Artboard* parentArtboard() const; ArtboardHost* m_host = nullptr; + +#ifdef WITH_RECORDER +static bool isDebug; +#endif static uint64_t sm_frameId; bool sharesLayoutWithHost() const; void cloneObjectDataBinds(const Core* object,
diff --git a/src/animation/linear_animation.cpp b/src/animation/linear_animation.cpp index 25dd73b..a21a49b 100644 --- a/src/animation/linear_animation.cpp +++ b/src/animation/linear_animation.cpp
@@ -55,6 +55,11 @@ void LinearAnimation::apply(Artboard* artboard, float time, float mix) const { + #ifdef WITH_RECORDER + if(Artboard::isDebug) { + printf("[RECORDER_LOG] LinearAnimation::apply: %f\n", time); + } + #endif if (quantize()) { float ffps = (float)fps();
diff --git a/src/artboard.cpp b/src/artboard.cpp index e76879f..aaa6d9a 100644 --- a/src/artboard.cpp +++ b/src/artboard.cpp
@@ -44,6 +44,9 @@ using namespace rive; uint64_t Artboard::sm_frameId = 0; +#ifdef WITH_RECORDER +uint64_t Artboard::isDebug = false; +#endif Artboard::Artboard() { @@ -1260,9 +1263,10 @@ bool Artboard::advanceInternal(float elapsedSeconds, AdvanceFlags flags) { - printf("[RECORDER_LOG] Artboard::advanceInternal:out\n"); #ifdef WITH_RECORDER - printf("[RECORDER_LOG] Artboard::advanceInternal:in\n"); + if(Artboard::isDebug) { + printf("[RECORDER_LOG] Artboard::advanceInternal: %f\n", elapsedSeconds); + } #endif bool didUpdate = false;