Conversation
|
@GuillaumeFavelier locally on master with a script similar to: DetailsI see this "flashing" (sorry the window disappears -- I'm talking about the meshes and outlines appearing and disappearing): And on this branch and latest PyVista Actually with this example script it's a bit worse -- the display doesn't update until I click on the window (ignore the "blue brain" in the background -- the window produced by the script above will appear on top of it, flash for a bit, then not display the final image until I click on the window to bring it to focus): |
|
Thanks for reporting, I can reproduce. I will investigate in this PR (already opened). |
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
larsoner
left a comment
There was a problem hiding this comment.
Awesome, works with both time_viewer=True and False!
|
@GuillaumeFavelier I'm +1 for backporting, any reason not to? |
|
I see no problem here 👍 |
|
Thanks @GuillaumeFavelier |
|
Nope, not backporting -- the conflict due to the TimeViewer / Brain refactor was ugly |
|
Ouch, my bad. I thought it was straightforward to cherry-pick this. |
* Update _add_mesh * Update mne/viz/backends/_pyvista.py Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Show the plotter when ready * Remove empty line * Fix save_movie action * Fix show Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
Actually I think I figured it out: 35662d0 |


This PR disables the rendering call each time a mesh is added to the scene in favour of only one call when everything is setup.
Quoting pyvista/pyvista#935 (comment):