Repository navigation
feat: job-safe transform math and transform handle allocator (batched transforms 1/5) - #4231
Draft
NoelStephensUnity wants to merge 1 commit into
Draft
NoelStephensUnity wants to merge 1 commit into
NoelStephensUnity wants to merge 1 commit into
Conversation
First of five PRs that replace #4123. Adds Burst-compatible math for NetworkTransform (position deltas, half-float vectors, quaternion compression) and the allocator that gives each NetworkTransform a handle into native storage. Nothing calls either yet.
This was referenced Oct 29, 2026
Draft
refactor: NetworkTransform delta detection as static job-safe methods (batched transforms 2/5)
#4232
Draft
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
Adds the job-safe math
NetworkTransformneeds and the allocator for compact transform handles. Nothing calls either yet, so behaviour is unchanged.Stack (replaces #4123, review in order): #4231 math and handles → #4232 static delta check → #4233 native interpolator and sync mode setting → #4234 blittable state and reliability → #4235 batched send path. Each PR targets the branch of the one before it; the diff shown is that PR alone.
PR Scope:
NetworkTransformMath: Burst-compatible replacements for the engine mathNetworkTransformuses (Euler conversion, delta angle, lerp and smooth dampening).QuaternionCompressorandHalfVector3: static, job-safe forms of the existing encode and decode paths. The existing public methods call them, so their output is unchanged.TransformHandleAllocator: hands out aushorthandle perNetworkTransformand holds released handles for a few seconds before reuse.Out of scope:
Jira ticket
N/A
Documentation
Testing & QA (How your changes can be verified during release Playtest)
NetworkTransformMathTestschecks the job-safe math against the engine math.TransformHandleAllocatorTestscovers allocation, release, hold and reuse.Functional Testing
Manual testing :
Manual testing doneAutomated tests:
Covered by existing automated testsCovered by new automated testsDoes the change require QA team to:
Review automated tests?Execute manual tests?Provide feedback about the PR?Up-port
N/A (develop-3.x.x only).
Backports
No backport is required.