From 91ad13628cd18842a963f3779c07871242384d70 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Thu, 25 Jan 2024 22:01:42 +0300 Subject: [PATCH] perf: Removed Unnecessary Recalculate in CircleBehaviour --- Game/Behaviours/CircleBehaviour.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Game/Behaviours/CircleBehaviour.cs b/Game/Behaviours/CircleBehaviour.cs index d5c7e67..6e107a7 100644 --- a/Game/Behaviours/CircleBehaviour.cs +++ b/Game/Behaviours/CircleBehaviour.cs @@ -2,7 +2,6 @@ using Microsoft.Xna.Framework; using Apos.Shapes; -using Syntriax.Engine.Core; using Syntriax.Engine.Physics2D.Primitives; namespace Pong.Behaviours; @@ -19,8 +18,6 @@ public class CircleBehaviour : Syntriax.Engine.Physics2D.Collider2DCircleBehavio public void Draw(ShapeBatch shapeBatch) { - Recalculate(); - shapeBatch.BorderCircle(CircleWorld.Center.ToDisplayVector2(), CircleWorld.Radius, Color); } }