Skip to content

WIP physics tracing/recording#449

Draft
Random-Scientist wants to merge 10 commits intoryanhcode:mainfrom
Random-Scientist:playback-tooling
Draft

WIP physics tracing/recording#449
Random-Scientist wants to merge 10 commits intoryanhcode:mainfrom
Random-Scientist:playback-tooling

Conversation

@Random-Scientist
Copy link
Copy Markdown
Contributor

@Random-Scientist Random-Scientist commented Apr 23, 2026

implements a tracing system that serializes all sable JNI commands to a file for playback by a minimal runner binary.
this opens up a lot of exciting possibilities for improving the physics engine down the line.

  • integration testing and validation of changes
  • ease of profiling/measuring performance changes on real recorded workloads
  • repeatable benchmarks
  • capturing PGO instrumentation data in CI builds
  • faster iteration times to test physics changes
  • reliable and controlled reproducers for physics bugs

At present there is a deadlock issue when recording with reentrant native calls. Also, this don't support (tracking the behavior of) external material collision handler callbacks yet.

@ryanhcode ryanhcode self-assigned this Apr 23, 2026
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.

2 participants