2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-10-22 22:35:51 +00:00

feat: verbose option sets log level to debug

This commit is contained in:
Jan Laupetin
2025-09-11 22:17:56 +02:00
parent 02f20f09b6
commit d693ace12f
13 changed files with 29 additions and 57 deletions

View File

@@ -26,14 +26,11 @@ void AbstractMaterialConstantZoneState::ExtractNamesFromZone()
const auto end = std::chrono::high_resolution_clock::now();
if (ObjWriting::Configuration.Verbose)
{
const auto durationInMs = std::chrono::duration_cast<std::chrono::milliseconds>(end - begin);
con::debug("Built material constant name lookup in {}ms: {} constant names; {} texture def names",
durationInMs.count(),
m_constant_names_from_shaders.size(),
m_texture_def_names_from_shaders.size());
}
const auto durationInMs = std::chrono::duration_cast<std::chrono::milliseconds>(end - begin);
con::debug("Built material constant name lookup in {}ms: {} constant names; {} texture def names",
durationInMs.count(),
m_constant_names_from_shaders.size(),
m_texture_def_names_from_shaders.size());
}
bool AbstractMaterialConstantZoneState::GetConstantName(const unsigned hash, std::string& constantName) const

View File

@@ -26,7 +26,6 @@ public:
GLB
};
bool Verbose = false;
std::vector<bool> AssetTypesToHandleBitfield;
ImageOutputFormat_e ImageOutputFormat = ImageOutputFormat_e::DDS;