mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Remove hidden option ReplaceTextureAllowLate
Don't want to have to test little-used paths like this.
This commit is contained in:
1 parent
cabc00be8d
commit
8e02f14276
3 files changed
+8
-17
No files matched your search
@@ -877,7 +877,6 @@ static const ConfigSetting graphicsSettings[] = {
|
||||
ReportedConfigSetting("ReplaceTextures", &g_Config.bReplaceTextures, true, true, true),
|
||||
ReportedConfigSetting("SaveNewTextures", &g_Config.bSaveNewTextures, false, true, true),
|
||||
ConfigSetting("IgnoreTextureFilenames", &g_Config.bIgnoreTextureFilenames, false, true, true),
|
||||
ConfigSetting("ReplaceTexturesAllowLate", &g_Config.bReplaceTexturesAllowLate, true, true, true),
|
||||
|
||||
ReportedConfigSetting("TexScalingLevel", &g_Config.iTexScalingLevel, 1, true, true),
|
||||
ReportedConfigSetting("TexScalingType", &g_Config.iTexScalingType, 0, true, true),
|
||||
|
||||
@@ -213,7 +213,6 @@ public:
|
||||
bool bReplaceTextures;
|
||||
bool bSaveNewTextures;
|
||||
bool bIgnoreTextureFilenames;
|
||||
bool bReplaceTexturesAllowLate;
|
||||
int iTexScalingLevel; // 0 = auto, 1 = off, 2 = 2x, ..., 5 = 5x
|
||||
int iTexScalingType; // 0 = xBRZ, 1 = Hybrid
|
||||
bool bTexDeposterize;
|
||||
|
||||
@@ -494,7 +494,7 @@ ReplacedTexture *TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w,
|
||||
ReplacedTexture *result = new ReplacedTexture();
|
||||
cache_[replacementKey] = result;
|
||||
result->vfs_ = this->vfs_;
|
||||
if (!g_Config.bReplaceTexturesAllowLate || budget > 0.0) {
|
||||
if (budget > 0.0) {
|
||||
PopulateReplacement(result, cachekey, hash, w, h);
|
||||
}
|
||||
return result;
|
||||
@@ -998,20 +998,13 @@ bool ReplacedTexture::IsReady(double budget) {
|
||||
if (!prepareDone_)
|
||||
return false;
|
||||
|
||||
if (g_Config.bReplaceTexturesAllowLate) {
|
||||
if (threadWaitable_)
|
||||
delete threadWaitable_;
|
||||
threadWaitable_ = new LimitedWaitable();
|
||||
g_threadManager.EnqueueTask(new ReplacedTextureTask(vfs_, *this, threadWaitable_));
|
||||
|
||||
if (threadWaitable_->WaitFor(budget)) {
|
||||
// If we finished all the levels, we're done.
|
||||
return initDone_ && levelData_ != nullptr && !levelData_->data.empty();
|
||||
}
|
||||
} else {
|
||||
Prepare(vfs_);
|
||||
_assert_(initDone_);
|
||||
return true;
|
||||
if (threadWaitable_)
|
||||
delete threadWaitable_;
|
||||
threadWaitable_ = new LimitedWaitable();
|
||||
g_threadManager.EnqueueTask(new ReplacedTextureTask(vfs_, *this, threadWaitable_));
|
||||
if (threadWaitable_->WaitFor(budget)) {
|
||||
// If we finished all the levels, we're done.
|
||||
return initDone_ && levelData_ != nullptr && !levelData_->data.empty();
|
||||
}
|
||||
|
||||
// Still pending on thread.
|
||||
|
||||
Reference in new issue
Block a user