mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-02-11 10:03:02 +00:00
chore: update all logging to use centralized logging component
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "ObjWriting.h"
|
||||
#include "Shader/D3D11ShaderAnalyser.h"
|
||||
#include "Shader/D3D9ShaderAnalyser.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
@@ -15,8 +16,7 @@ namespace
|
||||
|
||||
void AbstractMaterialConstantZoneState::ExtractNamesFromZone()
|
||||
{
|
||||
if (ObjWriting::Configuration.Verbose)
|
||||
std::cout << "Building material constant name lookup...\n";
|
||||
con::debug("Building material constant name lookup...");
|
||||
|
||||
const auto begin = std::chrono::high_resolution_clock::now();
|
||||
|
||||
@@ -29,10 +29,10 @@ void AbstractMaterialConstantZoneState::ExtractNamesFromZone()
|
||||
if (ObjWriting::Configuration.Verbose)
|
||||
{
|
||||
const auto durationInMs = std::chrono::duration_cast<std::chrono::milliseconds>(end - begin);
|
||||
std::cout << std::format("Built material constant name lookup in {}ms: {} constant names; {} texture def names\n",
|
||||
durationInMs.count(),
|
||||
m_constant_names_from_shaders.size(),
|
||||
m_texture_def_names_from_shaders.size());
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user