figments: drop unused perfcounter class

This commit is contained in:
Torrie Fischer 2023-12-20 10:48:10 +01:00
parent 23993a09cf
commit bb0f8619cb
4 changed files with 0 additions and 19 deletions

View File

@ -1,12 +0,0 @@
#pragma once
#include <ArduinoLog.h>
struct PerfCounter {
PerfCounter(const char* name) {}
~PerfCounter() {}
/*PerfCounter(const char* name) : start(millis()), name(name) {}
~PerfCounter() {Log.notice("%s: %d", name, millis() - start);}*/
uint16_t start;
const char* name;
};

View File

@ -1,7 +1,6 @@
#include "./Surface.h"
#include "./Display.h"
#include <ArduinoLog.h>
#include "Perfcounter.h"
Surface::Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end)
: start(dpy->coordinateMapping()->virtualToPhysicalCoords(start)),
@ -53,7 +52,6 @@ Surface::paintWith(std::function<void(CRGB&)> func)
void
Surface::paintShader(Surface::Shader shader)
{
PerfCounter _("paintShader");
uint8_t startX = min(start.x, end.x);
uint8_t startY = min(start.y, end.y);
uint8_t endX = max(start.x, end.x);

View File

@ -49,10 +49,7 @@ void SolidAnimation::loop() {
}
}
#include <Perfcounter.h>
void SolidAnimation::render(Display* dpy) const {
PerfCounter _("solidRender");
CRGB color(m_red.value(), m_green.value(), m_blue.value());
CRGB scaledPrev = m_prevColor;
scaledPrev = color.nscale8(30);

View File

@ -2,7 +2,6 @@
#include <Figments.h>
#include <ArduinoLog.h>
#include <Perfcounter.h>
class Blob {
uint8_t m_pos;
@ -51,7 +50,6 @@ public:
}
void render(Display* display) const {
PerfCounter _("blobRender");
const uint8_t width = 25;
auto map = display->coordinateMapping();
// Grab the physical pixel we'll start with