Disabling paged resource caching for now, as it's broken.

This commit is contained in:
Ben Vanik 2014-06-08 11:25:10 -07:00
parent 295910c3d8
commit 6514eaa780
3 changed files with 11 additions and 6 deletions

View File

@ -30,9 +30,10 @@ int BufferResource::Prepare() {
} }
} }
if (!dirtied_) { // DISABLED
return 0; //if (!dirtied_) {
} // return 0;
//}
dirtied_ = false; dirtied_ = false;
// pass dirty regions? // pass dirty regions?

View File

@ -118,6 +118,9 @@ void ResourceCache::SyncRange(uint32_t address, int length) {
// will not be changing, which allows us to do a foreach(res) and reload // will not be changing, which allows us to do a foreach(res) and reload
// and then clear the table. // and then clear the table.
// DISABLED
return;
// total bytes = (512 * 1024 * 1024) / (16 * 1024) = 32768 // total bytes = (512 * 1024 * 1024) / (16 * 1024) = 32768
// each byte = 1 page // each byte = 1 page
// Walk as qwords so we can clear things up faster. // Walk as qwords so we can clear things up faster.

View File

@ -292,9 +292,10 @@ int TextureResource::Prepare() {
} }
} }
if (!dirtied_) { // DISABLED
return 0; //if (!dirtied_) {
} // return 0;
//}
dirtied_ = false; dirtied_ = false;
// pass dirty regions? // pass dirty regions?