Skip to content

perf(idleservice): Sample humanoid movement at 10 Hz instead of every Stepped - #874

Open
oiisin wants to merge 1 commit into
Quenty:mainfrom
oiisin:users/oiisin/idleservice-sample-rate
Open

oiisin wants to merge 1 commit into
Quenty:mainfrom
oiisin:users/oiisin/idleservice-sample-rate

Conversation

@oiisin

@oiisin oiisin commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

IdleServiceClient wrote the humanoid root position into a ValueObject and read the deprecated BasePart.Velocity on every Stepped. In a client profile of a crowded place, that handler was about 92 ms per 26 s.

This samples ten times a second instead (idle needs half a second of standing still) and reads AssemblyLinearVelocity.

  • After: about 18 ms per 26 s in the same profile.
  • Idle and moving now switch up to 0.1 s later than before.
  • Tested in a playtest: idle while standing, not idle while walking, idle again about 0.5 s after stopping.

… Stepped

The client wrote the root position into a ValueObject and read the deprecated Velocity on every Stepped. Idle needs half a second of standing still, so sampling ten times a second is enough, and AssemblyLinearVelocity replaces Velocity.
@oiisin
oiisin deployed to integration November 28, 2026 21:31 — with GitHub Actions Active
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploy Results

ℹ️ No changed packages with deploy targets were discovered for this PR. · View logs

Test Results

ℹ️ No changed packages with test targets were discovered for this PR. · View logs

This branch was successfully deployed

1 active deployment
integration — 8f7dd386 Deployed Nov 28, 2026 by oiisin via integration-build #851
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant