diff --git a/src/main/java/org/janelia/saalfeldlab/paintera/PainteraBaseView.java b/src/main/java/org/janelia/saalfeldlab/paintera/PainteraBaseView.java index 28b31b26d..0f819b675 100644 --- a/src/main/java/org/janelia/saalfeldlab/paintera/PainteraBaseView.java +++ b/src/main/java/org/janelia/saalfeldlab/paintera/PainteraBaseView.java @@ -150,7 +150,7 @@ public PainteraBaseView( this.keyAndMouseBindings = keyAndMouseBindings; this.viewerOptions = viewerOptions .accumulateProjectorFactory(new CompositeProjectorPreMultiply.CompositeProjectorFactory(sourceInfo.composites())) - .numRenderingThreads(Math.max(1, Runtime.getRuntime().availableProcessors() - 2)); + .numRenderingThreads(Math.max(1, Math.min(Runtime.getRuntime().availableProcessors() - 1, 16))); this.views = new OrthogonalViews<>( manager, this.sharedQueue,