Skip to content

Make plot generation asynchronous to keep the UI responsive#171

Open
paulromano wants to merge 13 commits intoopenmc-dev:developfrom
paulromano:fix-window-freezing
Open

Make plot generation asynchronous to keep the UI responsive#171
paulromano wants to merge 13 commits intoopenmc-dev:developfrom
paulromano:fix-window-freezing

Conversation

@paulromano
Copy link
Contributor

@paulromano paulromano commented Jan 30, 2026

This change makes plot generation asynchronous so the UI stays responsive during potentially expensive calls into openmc.lib. It introduces a background worker thread for id_map/property_map, queues plot updates, and updates the view when results are ready. A status‑bar busy indicator translucent overlay on the plot provides feedback while plots are generating. Let me know what you think!

@paulromano paulromano requested a review from pshriwise January 30, 2026 19:31
@pshriwise
Copy link
Collaborator

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

@paulromano
Copy link
Contributor Author

@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

@pshriwise
Copy link
Collaborator

@paulromano
Copy link
Contributor Author

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.

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