Fix some not important warning to be less verbose in some cases

This commit is contained in:
Wojtek Figat
2024-12-04 18:40:52 +01:00
parent 12d9d94138
commit 2f16694529
2 changed files with 5 additions and 6 deletions

View File

@@ -274,11 +274,7 @@ namespace FlaxEditor.Modules
private void Load() private void Load()
{ {
if (!File.Exists(_cachePath)) if (!File.Exists(_cachePath))
{
Editor.LogWarning("Missing editor cache file.");
return; return;
}
_lastSaveTime = DateTime.UtcNow; _lastSaveTime = DateTime.UtcNow;
try try

View File

@@ -5,6 +5,7 @@
#include "Engine/Core/Log.h" #include "Engine/Core/Log.h"
#include "Engine/Graphics/GPUDevice.h" #include "Engine/Graphics/GPUDevice.h"
#include "Engine/Threading/Threading.h" #include "Engine/Threading/Threading.h"
#include "Engine/Engine/Globals.h"
#define GPU_TASKS_USE_DEDICATED_CONTEXT 0 #define GPU_TASKS_USE_DEDICATED_CONTEXT 0
@@ -36,7 +37,8 @@ GPUTasksContext::~GPUTasksContext()
auto task = tasks[i]; auto task = tasks[i];
if (task->GetSyncPoint() <= _currentSyncPoint && task->GetState() != TaskState::Finished) if (task->GetSyncPoint() <= _currentSyncPoint && task->GetState() != TaskState::Finished)
{ {
LOG(Warning, "{0} has been canceled before a sync", task->ToString()); if (!Globals::IsRequestingExit)
LOG(Warning, "{0} has been canceled before a sync", task->ToString());
task->CancelSync(); task->CancelSync();
} }
} }
@@ -60,7 +62,8 @@ void GPUTasksContext::OnCancelSync(GPUTask* task)
_tasksDone.Remove(task); _tasksDone.Remove(task);
LOG(Warning, "{0} has been canceled before a sync", task->ToString()); if (!Globals::IsRequestingExit)
LOG(Warning, "{0} has been canceled before a sync", task->ToString());
} }
void GPUTasksContext::OnFrameBegin() void GPUTasksContext::OnFrameBegin()