mirror of
https://github.com/bevyengine/bevy
synced 2024-11-29 16:10:19 +00:00
8070c29c21
# Objective - I want to take screenshots of examples in CI to help with validation of changes ## Solution - Can override how much time is updated per frame - Can specify on which frame to take a screenshots - Save screenshots in CI I reused the `TimeUpdateStrategy::ManualDuration` to be able to set the time update strategy to a fixed duration every frame. Its previous meaning didn't make much sense to me. This change makes it possible to have screenshots that are exactly the same across runs. If this gets merged, I'll add visual comparison of screenshots between runs to ensure nothing gets broken ## Migration Guide * `TimeUpdateStrategy::ManualDuration` meaning has changed. Instead of setting time to `Instant::now()` plus the given duration, it sets time to last update plus the given duration.
5 lines
89 B
Text
5 lines
89 B
Text
(
|
|
exit_after: Some(900),
|
|
frame_time: Some(0.03),
|
|
screenshot_frames: [200],
|
|
)
|