Hi,
Is there anyone else who has problems with display performance of
OpenSCAD on Windows that are solved with changing the 'Prefer layered
on DXGI swapchain' setting in the NVidia settings? My
software/hardware is latest OpenSCAD main, NVidia 3070 Ti with latest
drivers, Windows 11. Even a simple cube inside OpenSCAD gives me quite
janky performance when I rotate around it (just keeping lbutton down
and moving it), and stalls the entire machine when I rotate quickly
back and forth (so hold lbutton down, shake mouse left and right).
Sometimes it takes a few seconds for any window to become responsive
again after I do that.
But, when I change the 'Prefer layered on DXGI swapchain' setting in
the NVidia control panel, it becomes buttery smooth again.
Can anyone else reproduce this issue? Is it worth my time to look into
if this can be changed inside the OpenSCAD OpenGL code so it works for
everyone, because I think few people know about this setting and will
just chalk it up as 'OpenSCAD rendering is slow'? (which it isn't,
this isn't about the rendering, but about how to get the rendered
image data onto the screen after rendering) Here is a related PR from
Godot where someone ran into the same issue, although that never went
anywhere: https://github.com/godotengine/godot/pull/94503 .
cheers
Roel
On 10/18/2026 6:14 AM, Roel Vanhout via Discuss wrote:
'Prefer layered on DXGI swapchain' setting in the NVidia settings?
I have an NVIDIA GeForce GT 1030 and haven't ever had such a problem.
I don't immediately find that setting in the NVIDIA app. Where did you
find it?
Sorry I meant the NVIDIA Control Panel, that's something different
from the app. In the app you can only set it globally (Graphics ->
Global Settings -> Vulkan/OpenGL Present Method -> change from Auto to
Prefer layered on DXGI swap chain), in the Control Panel you can set
it per app. You go to the Windows Store, install the Control Panel, 3D
Settings, Manage 3D settings, Program Settings, 'Add' to select your
OpenSCAD binary, same Vulkan/OpenGL Present Method -> change from Auto
to Prefer layered on DXGI swap chain.
So you can rotate a plain cube as fast as you want without your PC
slowing down or the display getting lagged?
cheers
On Sun, Oct 18, 2026 at 7:24 PM Jordan Brown
openscad@jordan.maileater.net wrote:
On 10/18/2026 6:14 AM, Roel Vanhout via Discuss wrote:
'Prefer layered on DXGI swapchain' setting in the NVidia settings?
I have an NVIDIA GeForce GT 1030 and haven't ever had such a problem.
I don't immediately find that setting in the NVIDIA app. Where did you find it?
On 10/18/2026 10:44 AM, Roel Vanhout wrote:
Sorry I meant the NVIDIA Control Panel, that's something different
from the app.
That's where I was looking - I just hadn't found it. Now, with your
directions, I've found it. But it won't let me set it to that "prefer
layered" setting, so I can't experiment.
So you can rotate a plain cube as fast as you want without your PC
slowing down or the display getting lagged?
I can rotate almost anything as fast as I want. It takes a very complex
model for it to slow down.
My usual torture case is a Menger Sponge (Examples/Old/example024.scad),
and if I want to torture more I set "n" higher. For the default n=3 the
display is totally smooth.