mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
- turned off the interpolation cache which was taking too much memory. Please test this to see if performance is affected, this should REALLY help with memory usage.
This commit is contained in:
@@ -35,12 +35,14 @@ private:
|
||||
|
||||
std::map<float, std::map<bool, Vec3f *> > cacheVertices;
|
||||
std::map<float, std::map<bool, Vec3f *> > cacheNormals;
|
||||
bool enableCache;
|
||||
static bool enableCache;
|
||||
|
||||
public:
|
||||
InterpolationData(const Mesh *mesh);
|
||||
~InterpolationData();
|
||||
|
||||
static void setEnableCache(bool enabled) { enableCache = enabled; }
|
||||
|
||||
const Vec3f *getVertices() const {return vertices==NULL? mesh->getVertices(): vertices;}
|
||||
const Vec3f *getNormals() const {return normals==NULL? mesh->getNormals(): normals;}
|
||||
|
||||
|
Reference in New Issue
Block a user