diff --git a/server/core/src/main/java/dev/slimevr/resets/module.kt b/server/core/src/main/java/dev/slimevr/resets/module.kt index 1516752f0..f78b74bd2 100644 --- a/server/core/src/main/java/dev/slimevr/resets/module.kt +++ b/server/core/src/main/java/dev/slimevr/resets/module.kt @@ -94,7 +94,8 @@ class ResetsManager(val context: ResetsContext, val server: VRServer, val settin } // Reset the skeleton processors that store temporary data (smoothing, localizer, skating correction, etc.) - delay(10) // TODO skeleton runs in a different thread and seems to cause a race condition. Temporary patch. + delay(10) // TODO REMOVE Temporary patch to prevent old data from surviving reset at least. + // TODO Skeleton runs in a different thread, causing a race condition. The following line needs to run with the skeleton thread locked. skeleton.resetProcessors(resetType) // Update state and config diff --git a/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt b/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt index a9067e2d5..cbb3fb20a 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt @@ -222,7 +222,6 @@ class ComputedSkeletonBehaviour( targetState.pausedProcessedBoneInputs.mutateCopy { it[BodyPart.HEAD] = headBone?.copy(position = if (headBone.isPositionActive) headBone.position else it[BodyPart.HEAD]!!.position) } } else { // Run pre-FK processors - // TODO: Add a constrain processor (maybe not needed) val processedInputs = runInputProcessors(inputProcessors, targetState.boneInputs, targetState.skeletonHeight) if (targetState.paused) { // We just paused tracking and this is the last frame before we rely on paused bone inputs