Layered Clothing - updateInvalidatedFastClusters triggered by rapid "Enabled" state toggle of LinearVelocity constraint

Uniquely designed character controllers in my latest game have uncovered strange triggers to updateInvalidatedFastClusters seemingly related to physics constraints. Colleagues of mine have pointed out previously resolved issues related to updateInvalidatedFastClusters in other scenarios:

updateInvalidatedFastClusters/updateEntity triggers on character descendant part property changes, causing spikes

updateInvalidatedFastClusters called every frame for animations played inside viewport frames

My particular issue focuses on updateInvalidatedFastClusters as it relates to physics constraints. More specifically, LinearVelocity.
In addition, colleagues have also helped identify triggers caused by rapidly equipping and unequipping tools:

All of the stress tests of updateInvalidatedFastClusters mentioned above can be reproduced and observed in this file I have spent a whole day distilling and isolating from a larger tech stack: LC_updateInvalidatedFastClusters.rbxl (64.7 KB)

Please open the updateInvalidatedFastClusters script under StarterCharacterScripts and read the top of the file for more context.

To simplify and save time observing microprofiler, I recommend the following:

  • Switch microprofiler Mode to ā€œTimersā€ instead of ā€œDetailedā€.
  • Pan to the ā€œRenderā€ group right under ā€œNetworkā€ and ā€œHeartbeatā€
  • In the ā€œRenderā€ group, you should see a few bars fluxuating:
    • Prepare (~13ms max timeĀ¹)
    • UpdatePrepare (~13ms max timeĀ¹)
    • updateInvalidatedFastClusters (~13ms max timeĀ¹)
      ā€¦
    • upload (~8ms max timeĀ¹)
    • updateEntity (~13ms max timeĀ¹)
    • updateGeometry (~13ms max timeĀ¹)
    • finalize (~12ms max timeĀ¹)
  • Left click any of these to observe the graph in the bottom right corner

Ā¹ System Information

  • Windows 11
  • Intel Core i7 9700k, 32 GB
  • NVIDIA RTX 2080

Thank you!

@SigmaTechRBLX on X
Sawhorse Interactive - [F] Software Engineer
Supersocial - [F] Software Engineer
Voldex - [F] Gameplay Programmer
Red Manta - [F] Gameplay Programmer

3 Likes

Hello and thank you for reaching out and reporting the issue. This is currently being worked on and in final stages of fixing/releasing. Please stay tuned. We are currently working on verifying and fixing edge cases.

Thank you for your patience!

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.