Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Motion proxy only for meshes of 256k triangles or more

islandmed8656973cf124
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 185b77cd..a243bc9f 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1262,7 +1262,9 @@ void Renderer::sync(MeshSlot& s, Mesh& mesh, const NormalMapView* normalMap, boo
}
if (!full && (mesh.facesDirty || wantUvs != s.hasUvs)) uploadFaces(s, mesh, wantUvs);
if (wireframe && !s.linesValid && !s.outOfMemory) buildLines(s, mesh);
- if (proxyUsed_ && !s.outOfMemory) buildProxies(s, mesh);
+ // Small meshes draw in full while the view moves too (their proxy would save little).
+ constexpr size_t kProxyMinTriangles = size_t(1) << 18;
+ if (proxyUsed_ && !s.outOfMemory && s.drawnTriangles >= kProxyMinTriangles) buildProxies(s, mesh);
syncTexture(s, mesh);
syncNormalMap(s, mesh, normalMap);