Drastically reduced memory usage.

This commit is contained in:
David Williams
2008-02-12 19:32:56 +00:00
parent abb3def1e7
commit 66cc4a5eab
4 changed files with 29 additions and 1 deletions

View File

@ -25,12 +25,14 @@ namespace PolyVox
std::vector<boost::uint16_t> m_vecTriangleIndices;
std::vector<SurfaceVertex> m_vecVertices;
long int vertexIndices[POLYVOX_REGION_SIDE_LENGTH*2+1][POLYVOX_REGION_SIDE_LENGTH*2+1][POLYVOX_REGION_SIDE_LENGTH*2+1];
static long int vertexIndices[POLYVOX_REGION_SIDE_LENGTH*2+1][POLYVOX_REGION_SIDE_LENGTH*2+1][POLYVOX_REGION_SIDE_LENGTH*2+1];
static long int noOfVerticesSubmitted;
static long int noOfVerticesAccepted;
static long int noOfTrianglesSubmitted;
long int getSizeInBytes(void);
private:
bool m_AllowDuplicateVertices;
};