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

@@ -97,7 +97,6 @@ void Skybox::ApplySky(GPUContext* context, RenderContext& renderContext, const M
{
// Prepare mock draw call data
DrawCall drawCall;
Platform::MemoryClear(&drawCall, sizeof(DrawCall));
drawCall.World = world;
drawCall.ObjectPosition = drawCall.World.GetTranslation();
drawCall.ObjectRadius = _sphere.Radius;