perf: ⚡️ Throttle UI refresh of synced WL value in vtk port (#1070)
This commit is contained in:
1 parent
1a539d04c2
commit
9d08e81aa5
3 files changed
+17
-3
No files matched your search
@@ -213,6 +213,10 @@ class OHIFVTKViewport extends Component {
|
||||
|
||||
volumeMapper.setSampleDistance(sampleDistance);
|
||||
|
||||
// Be generous to surpress warnings, as the logging really hurts performance.
|
||||
// TODO: maybe we should auto adjust samples to 1000.
|
||||
volumeMapper.setMaximumSamplesPerRay(4000);
|
||||
|
||||
volumeCache[displaySetInstanceUid] = volumeActor;
|
||||
|
||||
return volumeActor;
|
||||
|
||||
Reference in new issue
Block a user