perf: ⚡️ Throttle UI refresh of synced WL value in vtk port (#1070)

This commit is contained in:
James Petts authored and Erik Ziegler committed 2019-10-23 09:45:26 +02:00
1 parent 1a539d04c2
commit 9d08e81aa5
3 files changed
+17 -3

No files matched your search

+4
View File
@@ -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;