From 14cac713bd724b6a74f1aff2c1aa07e11fc31a3a Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 1 Jun 2015 14:30:38 +0200 Subject: [PATCH] Added comment. --- include/PolyVox/MarchingCubesSurfaceExtractor.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/include/PolyVox/MarchingCubesSurfaceExtractor.inl b/include/PolyVox/MarchingCubesSurfaceExtractor.inl index 66b0529e..1afbe420 100644 --- a/include/PolyVox/MarchingCubesSurfaceExtractor.inl +++ b/include/PolyVox/MarchingCubesSurfaceExtractor.inl @@ -61,6 +61,7 @@ namespace PolyVox // Performance note: Profiling indicates that simply adding vertices and indices to the std::vector is one // of the bottlenecks when generating the mesh. Reserving space in advance helps here but is wasteful in the // common case that no/few vertices are generated. Maybe it's worth reserving a couple of thousand or so? + // Alternatively, maybe the docs should suggest the user reserves some space in the mesh they pass in? result->clear(); // Store some commonly used values for performance and convienience