Optimize Particles drawing to use a whole RenderContextBatch

This commit is contained in:
Wojtek Figat
2025-08-07 09:27:28 +02:00
parent 959371a995
commit 3ffb067e55
5 changed files with 110 additions and 70 deletions

View File

@@ -6,7 +6,7 @@
#include "Engine/Threading/ConcurrentSystemLocker.h"
class TaskGraphSystem;
struct RenderContext;
struct RenderContextBatch;
struct RenderView;
class ParticleEmitter;
class ParticleSystemInstance;
@@ -48,9 +48,9 @@ public:
/// <summary>
/// Draws the particles.
/// </summary>
/// <param name="renderContext">The rendering context.</param>
/// <param name="renderContextBatch">The rendering context.</param>
/// <param name="effect">The owning actor.</param>
static void DrawParticles(RenderContext& renderContext, ParticleEffect* effect);
static void DrawParticles(RenderContextBatch& renderContextBatch, ParticleEffect* effect);
#if USE_EDITOR
/// <summary>