From 46d747bfaa2be1b468978979e196a7ddc8e54b1f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 17 Sep 2020 10:13:14 +0200 Subject: [PATCH] Reduced threshold to split index buffers for toolpaths render --- src/slic3r/GUI/GCodeViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 16bb27157..dccf09e46 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -1170,7 +1170,7 @@ void GCodeViewer::load_toolpaths(const GCodeProcessor::Result& gcode_result) if (buffer_indices.empty()) buffer_indices.push_back(IndexBuffer()); - static const size_t THRESHOLD = 1024 * 1024 * 1024; + static const size_t THRESHOLD = 1024 * 1024 * 128; // if adding the indices for the current segment exceeds the threshold size of the current index buffer // create another index buffer, and move the current path indices into it if (buffer_indices.back().size() >= THRESHOLD - static_cast(buffer.indices_per_segment())) {