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 incorrect timing when calling Delay with PhysicsProcess #8

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

Delsin-Yu
Copy link
Contributor

This issue is discovered when writing tests for GDTask.Nuget, previously, DelayPromise used GDTaskPlayerLoopAutoload.Global.DeltaTime for advancing internal double elapsed; this leads to incorrect timing behavior when the PlayerLoopTiming is sets to PhysicsProcess.

This PR fixes the issue by storing the timing type in DelayPromise and using that to distinguish the correct delta to use.

@Delsin-Yu
Copy link
Contributor Author

Before:
8c2ad395115eabb9444dd90b48bbbd67
After:
3a9eab92b42122cd76afae820f6da263

@Atlinx Atlinx merged commit 7e60152 into Fractural:4.x Mar 26, 2024
1 check failed
@Atlinx
Copy link
Member

Atlinx commented Mar 26, 2024

Thanks for PR ❤️

@Delsin-Yu Delsin-Yu deleted the 4.x branch March 27, 2024 02:16
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