Fix performance bug in Development/Release builds due to incorrect draw calls batching (uninitialized memory)

This commit is contained in:
Wojtek Figat
2023-09-28 10:59:09 +02:00
parent b7e871ecfd
commit 98d5769558
7 changed files with 7 additions and 34 deletions

View File

@@ -279,10 +279,11 @@ struct DrawCall
uint64 SortKey;
/// <summary>
/// Does nothing.
/// Zero-init.
/// </summary>
DrawCall()
FORCE_INLINE DrawCall()
{
Platform::MemoryClear(this, sizeof(DrawCall));
}
};