mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Remove static logging
This commit is contained in:
parent
9e84603ca4
commit
333cbc99ad
3 changed files with 0 additions and 15 deletions
|
@ -43,14 +43,6 @@ bool recommendedSparseTextures = (QThread::idealThreadCount() >= MIN_CORES_FOR_I
|
||||||
|
|
||||||
std::atomic<bool> Texture::_enableSparseTextures { recommendedSparseTextures };
|
std::atomic<bool> Texture::_enableSparseTextures { recommendedSparseTextures };
|
||||||
|
|
||||||
struct ReportTextureState {
|
|
||||||
ReportTextureState() {
|
|
||||||
qCDebug(gpulogging) << "[TEXTURE TRANSFER SUPPORT]"
|
|
||||||
<< "\n\tidealThreadCount:" << QThread::idealThreadCount()
|
|
||||||
<< "\n\tRECOMMENDED enableSparseTextures:" << recommendedSparseTextures;
|
|
||||||
}
|
|
||||||
} report;
|
|
||||||
|
|
||||||
void Texture::setEnableSparseTextures(bool enabled) {
|
void Texture::setEnableSparseTextures(bool enabled) {
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
qCDebug(gpulogging) << "[TEXTURE TRANSFER SUPPORT] SETTING - Enable Sparse Textures and Dynamic Texture Management:" << enabled;
|
qCDebug(gpulogging) << "[TEXTURE TRANSFER SUPPORT] SETTING - Enable Sparse Textures and Dynamic Texture Management:" << enabled;
|
||||||
|
|
|
@ -33,17 +33,12 @@ LogHandler& LogHandler::getInstance() {
|
||||||
}
|
}
|
||||||
|
|
||||||
LogHandler::LogHandler() {
|
LogHandler::LogHandler() {
|
||||||
// when the log handler is first setup we should print our timezone
|
|
||||||
QString timezoneString = "Time zone: " + QDateTime::currentDateTime().toString("t");
|
|
||||||
printMessage(LogMsgType::LogInfo, QMessageLogContext(), timezoneString);
|
|
||||||
|
|
||||||
// make sure we setup the repeated message flusher, but do it on the LogHandler thread
|
// make sure we setup the repeated message flusher, but do it on the LogHandler thread
|
||||||
QMetaObject::invokeMethod(this, "setupRepeatedMessageFlusher");
|
QMetaObject::invokeMethod(this, "setupRepeatedMessageFlusher");
|
||||||
}
|
}
|
||||||
|
|
||||||
LogHandler::~LogHandler() {
|
LogHandler::~LogHandler() {
|
||||||
flushRepeatedMessages();
|
flushRepeatedMessages();
|
||||||
printMessage(LogMsgType::LogDebug, QMessageLogContext(), "LogHandler shutdown.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* stringForLogType(LogMsgType msgType) {
|
const char* stringForLogType(LogMsgType msgType) {
|
||||||
|
|
|
@ -90,7 +90,6 @@ const QString& PathUtils::resourcesPath() {
|
||||||
staticResourcePath = projectRootPath() + "/interface/resources/";
|
staticResourcePath = projectRootPath() + "/interface/resources/";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
qDebug() << "Resource path resolved to " << staticResourcePath;
|
|
||||||
});
|
});
|
||||||
return staticResourcePath;
|
return staticResourcePath;
|
||||||
}
|
}
|
||||||
|
@ -105,7 +104,6 @@ const QString& PathUtils::resourcesUrl() {
|
||||||
staticResourcePath = QUrl::fromLocalFile(projectRootPath() + "/interface/resources/").toString();
|
staticResourcePath = QUrl::fromLocalFile(projectRootPath() + "/interface/resources/").toString();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
qDebug() << "Resource url resolved to " << staticResourcePath;
|
|
||||||
});
|
});
|
||||||
return staticResourcePath;
|
return staticResourcePath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue