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

experimentation with debugdump #383

Merged
merged 5 commits into from
Sep 20, 2024
Merged

experimentation with debugdump #383

merged 5 commits into from
Sep 20, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Jun 24, 2024

Objective

Solution

  • Add an example to generate those

Run with: cargo run --example debugdump_3d > avian.dot && dot -Tsvg avian.dot > avian.svg

Output for 3d

PhysicsSchedule

dump_physics

SubstepSchedule

dump_substeps

FixedPostUpdate

dump_fixed_update

Update

dump_update


Changelog

  • Add an example to generate systems ordering graphs.

@Vrixyz Vrixyz changed the base branch from avian to main September 11, 2024 12:24
app.add_plugins((PhysicsPlugins::default(), PhysicsDebugPlugin::default()));
// Schedules of interest:
// - PhysicsSchedule
// - SubstepSchedule
Copy link
Contributor Author

@Vrixyz Vrixyz Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of f161a74 ; Attempting to make a graph for SubstepSchedule results in an error.

@Jondolf Jondolf added C-Examples Improvements or additions to examples A-Scheduling Relates to scheduling or system sets labels Sep 20, 2024
Copy link
Owner

@Jondolf Jondolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is really useful. The SubstepSchedule issue is unfortunate, but not a blocker here imo.

crates/avian2d/examples/debugdump_2d.rs Outdated Show resolved Hide resolved
crates/avian3d/Cargo.toml Outdated Show resolved Hide resolved
@Jondolf Jondolf enabled auto-merge (squash) September 20, 2024 10:35
@Jondolf Jondolf merged commit 7d79ca1 into Jondolf:main Sep 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Scheduling Relates to scheduling or system sets C-Examples Improvements or additions to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants