Open toloudis opened 6 months ago
of note: close transfer function editors and playback speeds up.
requires profiling and study of how to minimize the work that React is doing when volume data is updated while playback happens.
idea: during playback, figure out what is the minimal stuff that needs to update (e.g. transfer function editor display only when it is open, and nothing else) and create a targeted code path that only updates that stuff ...?
Description
Channels arriving triggers extra react state manipulation in callbacks. See channel version being incremented (setOneChannelLoaded) which leads to ChannelUpdater re-render, which has lots of dependencies on version in several useeffects.
Expected Behavior
Hopefully we can find ways to reduce the amount of react cpu processing during T playback.