-
Notifications
You must be signed in to change notification settings - Fork 21
Make plot generation asynchronous to keep the UI responsive #171
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
Conversation
|
This is really nice. Being able to interact with the app window while plots are being generated is a huge plus. I like the status indicator and status bar text idea, though the status bar indicator was a little subtle to me, particularly on a wider monitor. I tried combining the two into an overlay in the plot image area. What do you think? Screencast.from.2026-02-05.15-23-34.webm |
|
@pshriwise Interesting, can you throw that on another branch for me to play around with? If I like it, I'll merge it into the branch here |
|
I do indeed like your version better and merged it in; thanks! I made a few more small updates -- let me know what you think now. |
pshriwise
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @paulromano!
This change makes plot generation asynchronous so the UI stays responsive during potentially expensive calls into
openmc.lib. It introduces a background worker thread forid_map/property_map, queues plot updates, and updates the view when results are ready. Astatus‑bar busy indicatortranslucent overlay on the plot provides feedback while plots are generating. Let me know what you think!