From e9070b30a0aa5fbc62ad88bb7fd7726dd7085bbe Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 13 Nov 2025 23:05:13 +0100 Subject: [PATCH] Minor tweaks --- Source/Engine/Content/Content.cpp | 1 + Source/Engine/Particles/ParticlesSimulation.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Content/Content.cpp b/Source/Engine/Content/Content.cpp index b82a329a8..66e18a231 100644 --- a/Source/Engine/Content/Content.cpp +++ b/Source/Engine/Content/Content.cpp @@ -700,6 +700,7 @@ Asset* Content::GetAsset(const StringView& outputPath) { if (outputPath.IsEmpty()) return nullptr; + PROFILE_CPU(); ScopeLock lock(AssetsLocker); for (auto i = Assets.Begin(); i.IsNotEnd(); ++i) { diff --git a/Source/Engine/Particles/ParticlesSimulation.cpp b/Source/Engine/Particles/ParticlesSimulation.cpp index d25127e2f..bc1fa9eea 100644 --- a/Source/Engine/Particles/ParticlesSimulation.cpp +++ b/Source/Engine/Particles/ParticlesSimulation.cpp @@ -156,7 +156,7 @@ void ParticleSystemInstance::Sync(ParticleSystem* system) if (GPUParticlesCountReadback) GPUParticlesCountReadback->ReleaseGPU(); } - ASSERT(Emitters.Count() == system->Emitters.Count()); + CHECK(Emitters.Count() == system->Emitters.Count()); } bool ParticleSystemInstance::ContainsEmitter(ParticleEmitter* emitter) const