Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip early working POC background simulation #29

Open
wants to merge 1 commit into
base: interpolation_exploration
Choose a base branch
from

Conversation

Vrixyz
Copy link
Owner

@Vrixyz Vrixyz commented Nov 27, 2024

Questions

This branch proves it's possible to make such simulation in "full" parallel, but currently to simulated time is not correlated to the "real" time, to sync those, it brings up a few important questions:

  • outline a strategy for syncing with frames
    • what happens when physics time takes more time than it's allocated time? Should we block ?
      • if blocking, we should be able to retrieve how much we blocked.
      • if not blocking, the "regular" time could be ahead of physics time.
    • what happens when regular update (cpu+rendering) takes more time than physics ?
      • info dumped next (fixed) frame ?
      • wait for the closest frame to expected time to dump info?
  • depending on above questions, settle a configuration API
    • a feature flag or runtime setup?

image

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