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

Feature/smooth progress bars #32

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Feature/smooth progress bars #32

merged 2 commits into from
Sep 14, 2024

Conversation

khdlr
Copy link
Member

@khdlr khdlr commented Sep 14, 2024

Use setTimeout to stop blocking the main thread during our calculation iteration.

Also, this now internally wraps the progressCallback function in case two iterations rounds are done (= if diffuseRadiation is computed), in order to stop the progress bar from jumping all over the place.

@khdlr khdlr merged commit 3b8dfd5 into main Sep 14, 2024
2 checks passed
@khdlr khdlr deleted the feature/smooth-progress-bars branch September 14, 2024 11:46
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