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

Fix very low playspeed rendering #205

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

sibocw
Copy link
Contributor

@sibocw sibocw commented Jul 10, 2024

Description

Bug: If the specified video playspeed is so low (or if video FPS is so high, or a combination thereof) that the frequency of rendering is higher than the frequency of the physics simulation (the former is effectively bound to the latter, of course), Camera.save_video doesn't work correctly with non-zero stabilization_time. It over-counts the number of frames during the stabilization period and therefore are to be dropped.

This PR fixes this bug.

Does this address any currently open issues?

No

…d playspeed is so low that there every single step of simulation is rendered
@sibocw sibocw requested a review from stimpfli July 10, 2024 12:59
@sibocw sibocw changed the base branch from main to dev-v1.0.1-pre.1 July 10, 2024 12:59
@sibocw
Copy link
Contributor Author

sibocw commented Jul 10, 2024

@stimpfli: Please be aware of this in the new Camera API.

@sibocw sibocw mentioned this pull request Jul 10, 2024
@sibocw sibocw merged commit 55b9209 into dev-v1.0.1-pre.1 Jul 15, 2024
15 checks passed
@sibocw sibocw deleted the fix-very-low-playspeed-rendering branch July 15, 2024 07:53
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