you can get around this somewhat by having less visually smooth previews when editing and higher quality when you want an stl
$fn = $preview ? 32 : 256;