Replies: 1 comment 2 replies
-
i'm not aware of any such issue. you can try analyzing browser profiler, but it can be a lot. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m seeing unexpected and occasionally very large delays when calling await this.ml.human.tf.nextFrame() inside an observe loop which runs for 5 minutes.
What I’m doing
Inside a continuously running observe loop, I call:
await this.ml.human.tf.nextFrame();I log a timestamp immediately before and after this line to measure how long the await takes.Observed behavior
In most iterations, the time difference between the two timestamps is ~1 second, which is expected.
However, intermittently I observe much larger delays:
Environment
Question
Is there a known reason why tf.nextFrame() might occasionally block for such long durations (e.g., event loop starvation, GC pauses, internal TFJS scheduling, or browser throttling)?
Any guidance on diagnosing or mitigating this behavior would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions