clarify todo

This commit is contained in:
Erimel committed 2026-09-17 14:18:12 -04:00
1 parent 3c707268a7
commit 81a1ab0089
2 files changed
+2 -2

No files matched your search

@@ -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
@@ -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