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: simulation in task over multiple frames #29

Open
wants to merge 17 commits into
base: interpolation_exploration
Choose a base branch
from

Conversation

Vrixyz
Copy link
Owner

@Vrixyz Vrixyz commented Nov 27, 2024

How to test

My preferred way is to run with tracy, to have a visual understanding of how systems are running:

cargo run --release --example background2 --features background_simulation,bevy/trace_tracy

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

ignore doc for tests + ignore lifetime ellision
* fix dimforge#598

* fix async-collider without default features
* fix sync_removals with low physics fixed rate

* simplify test_sync_removal
+ add unicode-3.0 from unicode-ident from naga-oil.
@Vrixyz Vrixyz changed the title wip early working POC background simulation wip: simulation in task over multiple frames Dec 6, 2024
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