Profiles - Tweaked render pipeline, improving render performance by ~40%

This commit is contained in:
SpoinkyNL committed 2020-11-15 17:38:06 +01:00
1 parent 7735edea1e
commit 991c5fd955
11 files changed
+231 -207

No files matched your search

@@ -28,7 +28,7 @@ namespace Artemis.Core.LayerBrushes
/// <returns>The color the LED will receive</returns>
public abstract SKColor GetColor(ArtemisLed led, SKPoint renderPoint);
internal override void InternalRender(SKCanvas canvas, SKPath path, SKPaint paint)
internal override void InternalRender(SKCanvas canvas, SKRect bounds, SKPaint paint)
{
// We don't want rotation on this canvas because that'll displace the LEDs, translations are applied to the points of each LED instead
if (Layer.General.TransformMode.CurrentValue == LayerTransformMode.Normal && SupportsTransformation)