Repository navigation
Conversation
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PaulHax
force-pushed
the
render-frame-scheduler
branch
from
November 15, 2026 18:20
f6825b7 to
3d398de
Compare
A parent render window render traverses every child view, so each view resize redrew the whole layout twice and then the resized view twice more. Sibling views keep their own canvases, so only the resized view needs a redraw, and its immediate render now covers the queued one. The orientation marker also redrew the 3D view on every canvas resize. It now fits its viewport during the resize, before the view renders.
PaulHax
force-pushed
the
render-frame-scheduler
branch
from
November 15, 2026 18:22
3d398de to
f63a373
Compare
Render requests from the app and from vtk.js now share one render per view per frame. The vtk interactor's own render calls become requests, and a request made while rendering is dropped. View size comes from one resize observer, and slice views fit the camera on the view's resize event.
PaulHax
force-pushed
the
render-frame-scheduler
branch
from
November 15, 2026 20:28
f63a373 to
1399efa
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1034. Only the last commit is new here; the first is #1034's.
After #1034, a single change could still render a view several times before the next frame was shown. The app, vtk.js widgets, and the vtk interactor each asked for renders independently, and each one drew.
This change gives every view one render per frame:
enableRender: false, so vtk.js's ownrender()calls only emitRenderEvent, which the view turns into a render request. vtk-initiated renders join the app's requests instead of drawing immediately. Frames of vtk's interaction animation, during drags and wheel zoom, draw when vtk asks for them.batchForNextFrame, which renders in the next animation frame.VtkSliceViewfits the camera on the view's window resize event, so the render that follows already shows the fit.Not covered: during interaction, vtk's interactor animation loop still renders every frame even when nothing changed, for example in the tail after mouse wheel input.