mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-05 16:22:32 -08:00
Stop computing skeleton frametime for nothing
This commit is contained in:
1 parent
7f7e229349
commit
b95140796e
1 file changed
-6
@@ -96,8 +96,6 @@ class ComputedSkeletonBehaviour(
|
||||
|
||||
override fun observe(receiver: Skeleton) {
|
||||
var nextLogTime = timeSource.markNow() + logSpamWait
|
||||
var frameStartTime = timeSource.markNow()
|
||||
var lastFrameTime = Duration.ZERO
|
||||
var processTooLongCount = 0
|
||||
|
||||
receiver.context.scope.launch {
|
||||
@@ -137,10 +135,6 @@ class ComputedSkeletonBehaviour(
|
||||
// 1000,
|
||||
// )
|
||||
|
||||
// Frame time tracking ends and restarts here
|
||||
lastFrameTime = frameStartTime.elapsedNow()
|
||||
frameStartTime = timeSource.markNow()
|
||||
|
||||
// Updated the computed skeleton with the result
|
||||
if (!targetState.paused) { // FIXME : bones should still follow the head when paused
|
||||
receiver.computed.tryEmit(fk)
|
||||
|
||||
Reference in new issue
Block a user