Added comment.

This commit is contained in:
David Williams 2015-06-01 14:30:38 +02:00
parent ff567aa9f8
commit 14cac713bd

View File

@ -61,6 +61,7 @@ namespace PolyVox
// Performance note: Profiling indicates that simply adding vertices and indices to the std::vector is one // 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 // 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? // 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(); result->clear();
// Store some commonly used values for performance and convienience // Store some commonly used values for performance and convienience