mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Reduced threshold to split index buffers for toolpaths render
This commit is contained in:
parent
3ca6278ac9
commit
46d747bfaa
1 changed files with 1 additions and 1 deletions
|
@ -1170,7 +1170,7 @@ void GCodeViewer::load_toolpaths(const GCodeProcessor::Result& gcode_result)
|
||||||
if (buffer_indices.empty())
|
if (buffer_indices.empty())
|
||||||
buffer_indices.push_back(IndexBuffer());
|
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
|
// 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
|
// create another index buffer, and move the current path indices into it
|
||||||
if (buffer_indices.back().size() >= THRESHOLD - static_cast<size_t>(buffer.indices_per_segment())) {
|
if (buffer_indices.back().size() >= THRESHOLD - static_cast<size_t>(buffer.indices_per_segment())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue