Don't update 3D view when it is not visible or doesn't have input focus (lp:#1785396)
Original report created by Oleg Endo (oleg.endo)
Currently (development master branch) the 3D view is always updated
whenever a change to the board is made in pcbnew. Even if the 3D view
window is not visible. I remember this used to be different some time ago.
The 3D view was only updated when it was actually visible or when it gained
input focus.
The old behavior was extremely useful when working with a 3D view on the
side. It allows editing the board and quickly get a feedback in the 3D
view.
With the current behavior, every edit step in pcbnew takes several seconds
because it always updates the 3D view. This makes board editing with the
3D view being opened pretty much impractical even for smaller boards. The
only solution is to close the 3D view and open it again to see the results.
However, for larger boards the initial loading of all the 3D models takes
long time.
Original tags: 3d-viewer