From 2f16694529f241828d207c4e6b1a90c6125714f8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 4 Dec 2024 18:40:52 +0100 Subject: [PATCH] Fix some not important warning to be less verbose in some cases --- Source/Editor/Modules/ProjectCacheModule.cs | 4 ---- Source/Engine/Graphics/Async/GPUTasksContext.cpp | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Source/Editor/Modules/ProjectCacheModule.cs b/Source/Editor/Modules/ProjectCacheModule.cs index b0ebb6981..3e2cd6806 100644 --- a/Source/Editor/Modules/ProjectCacheModule.cs +++ b/Source/Editor/Modules/ProjectCacheModule.cs @@ -274,11 +274,7 @@ namespace FlaxEditor.Modules private void Load() { if (!File.Exists(_cachePath)) - { - Editor.LogWarning("Missing editor cache file."); return; - } - _lastSaveTime = DateTime.UtcNow; try diff --git a/Source/Engine/Graphics/Async/GPUTasksContext.cpp b/Source/Engine/Graphics/Async/GPUTasksContext.cpp index 11582fe78..e0ee8cae1 100644 --- a/Source/Engine/Graphics/Async/GPUTasksContext.cpp +++ b/Source/Engine/Graphics/Async/GPUTasksContext.cpp @@ -5,6 +5,7 @@ #include "Engine/Core/Log.h" #include "Engine/Graphics/GPUDevice.h" #include "Engine/Threading/Threading.h" +#include "Engine/Engine/Globals.h" #define GPU_TASKS_USE_DEDICATED_CONTEXT 0 @@ -36,7 +37,8 @@ GPUTasksContext::~GPUTasksContext() auto task = tasks[i]; 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(); } } @@ -60,7 +62,8 @@ void GPUTasksContext::OnCancelSync(GPUTask* 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()