removed unused isDirty bool ( maybe unstable with tileset particles before )
This commit is contained in:
parent
f07b7a3603
commit
5494a80233
|
@ -4669,10 +4669,6 @@ void Renderer::renderUnitTitles(Font2D *font, Vec3f color) {
|
|||
*/
|
||||
}
|
||||
|
||||
void Renderer::setQuadCacheDirty(bool value) {
|
||||
quadCache.cacheIsDirty = value;
|
||||
}
|
||||
|
||||
void Renderer::removeObjectFromQuadCache(const Object *o) {
|
||||
VisibleQuadContainerCache &qCache = getQuadCache();
|
||||
for(int visibleIndex = 0;
|
||||
|
@ -4711,9 +4707,6 @@ VisibleQuadContainerCache & Renderer::getQuadCache( bool updateOnDirtyFrame,
|
|||
if(game != NULL && game->getWorld() != NULL) {
|
||||
const World *world= game->getWorld();
|
||||
|
||||
if(quadCache.cacheIsDirty == true) {
|
||||
forceNew = true;
|
||||
}
|
||||
if(forceNew == true ||
|
||||
(updateOnDirtyFrame == true &&
|
||||
(world->getFrameCount() != quadCache.cacheFrame ||
|
||||
|
@ -4798,7 +4791,6 @@ VisibleQuadContainerCache & Renderer::getQuadCache( bool updateOnDirtyFrame,
|
|||
}
|
||||
}
|
||||
quadCache.cacheFrame = world->getFrameCount();
|
||||
quadCache.cacheIsDirty = false;
|
||||
quadCache.lastVisibleQuad = visibleQuad;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,7 +89,6 @@ protected:
|
|||
|
||||
void CopyAll(const VisibleQuadContainerCache &obj) {
|
||||
cacheFrame = obj.cacheFrame;
|
||||
cacheIsDirty = obj.cacheIsDirty;
|
||||
visibleObjectList = obj.visibleObjectList;
|
||||
visibleUnitList = obj.visibleUnitList;
|
||||
visibleQuadUnitList = obj.visibleQuadUnitList;
|
||||
|
@ -101,7 +100,6 @@ public:
|
|||
|
||||
VisibleQuadContainerCache() {
|
||||
cacheFrame = 0;
|
||||
cacheIsDirty = false;
|
||||
clearCacheData();
|
||||
}
|
||||
VisibleQuadContainerCache(const VisibleQuadContainerCache &obj) {
|
||||
|
@ -128,7 +126,6 @@ public:
|
|||
|
||||
int cacheFrame;
|
||||
Quad2i lastVisibleQuad;
|
||||
bool cacheIsDirty;
|
||||
std::vector<Object *> visibleObjectList;
|
||||
std::vector<Unit *> visibleQuadUnitList;
|
||||
std::vector<Unit *> visibleUnitList;
|
||||
|
@ -426,7 +423,6 @@ public:
|
|||
int getLastRenderFps() const { return lastRenderFps;}
|
||||
|
||||
VisibleQuadContainerCache & getQuadCache(bool updateOnDirtyFrame=true,bool forceNew=false);
|
||||
void setQuadCacheDirty(bool value);
|
||||
void removeObjectFromQuadCache(const Object *o);
|
||||
void removeUnitFromQuadCache(const Unit *unit);
|
||||
|
||||
|
|
Loading…
Reference in New Issue