Really fantastic little piece. Note to dev: there is a typo at the end game screen, "Exempt" should be "Excerpt"
TheNudist
2
Posts
1
Topics
1
Followers
A member registered Aug 04, 2022 · View creator page →
Creator of
Benchmarking different collider types in the Unity physics system
Run in browser
Recent community posts
itch.io Community » Game Development » General Development · Created a new topic A WebGL benchmark of the GetComponent function in Unity
I built a benchmark to stress GetComponent in Unity, in response to widespread concern over its performance.
After building the test, I've decided to share it, since I could find no real online sources besides some old and controversial and user benchmarks. This was designed to address a major complaint with those, namely that simply running GetComponent repeatedly in a loop does not produce valid results, due to compiler optimization. In mine, a different component is chosen at random each iteration.
Your results will depend on your device. On mine, I can run 1000-2000 iterations without any apparent stutter in the on-screen movement.
I hope it is helpful for someone.