Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-02-27 17:38:35 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-02-27 17:38:35 +0300
commit5ca46984004afe5fb70fdae0966d2f3a061b952b (patch)
tree047192e582e8aa9e041dbe5cd0c9bd9eb929f5aa /src/slic3r/GUI
parent73ad48c135f7ce167a858542fdaacd34d36b99c6 (diff)
Reduce max texture size if physical ram is smaller than 6GB
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/GLCanvas3DManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLCanvas3DManager.cpp b/src/slic3r/GUI/GLCanvas3DManager.cpp
index fcdbe9af1..e99d8b2f6 100644
--- a/src/slic3r/GUI/GLCanvas3DManager.cpp
+++ b/src/slic3r/GUI/GLCanvas3DManager.cpp
@@ -116,6 +116,9 @@ void GLCanvas3DManager::GLInfo::detect() const
m_max_tex_size /= 2;
+ if (Slic3r::total_physical_memory() / (1024 * 1024 * 1024) < 6)
+ m_max_tex_size /= 2;
+
if (GLEW_EXT_texture_filter_anisotropic)
glsafe(::glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &m_max_anisotropy));