Let's not declare vertex arrays as RELIABLE for now.

This commit is contained in:
Henrik Rydgard 2013-02-06 20:45:25 +01:00
parent aaf00e047b
commit 6f9347178b

View File

@ -863,7 +863,7 @@ void TransformDrawEngine::ClearTrackedVertexArrays() {
void TransformDrawEngine::DecimateTrackedVertexArrays() {
int threshold = gpuStats.numFrames - VAI_KILL_AGE;
for (auto iter = vai_.begin(); iter != vai_.end(); ) {
if (iter->second->lastFrame < threshold ) {
if (iter->second->lastFrame < threshold) {
delete iter->second;
vai_.erase(iter++);
}
@ -937,9 +937,9 @@ void TransformDrawEngine::Flush() {
// exponential backoff up to 16 frames
vai->drawsUntilNextFullHash = std::min(16, vai->numDraws);
// TODO: tweak
if (vai->numDraws > 1000) {
vai->status = VertexArrayInfo::VAI_RELIABLE;
}
//if (vai->numDraws > 1000) {
// vai->status = VertexArrayInfo::VAI_RELIABLE;
//}
if (newHash != vai->hash) {
vai->status = VertexArrayInfo::VAI_UNRELIABLE;
if (vai->vbo) {