figments: drop unused perfcounter class
This commit is contained in:
parent
23993a09cf
commit
bb0f8619cb
@ -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;
|
|
||||||
};
|
|
@ -1,7 +1,6 @@
|
|||||||
#include "./Surface.h"
|
#include "./Surface.h"
|
||||||
#include "./Display.h"
|
#include "./Display.h"
|
||||||
#include <ArduinoLog.h>
|
#include <ArduinoLog.h>
|
||||||
#include "Perfcounter.h"
|
|
||||||
|
|
||||||
Surface::Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end)
|
Surface::Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end)
|
||||||
: start(dpy->coordinateMapping()->virtualToPhysicalCoords(start)),
|
: start(dpy->coordinateMapping()->virtualToPhysicalCoords(start)),
|
||||||
@ -53,7 +52,6 @@ Surface::paintWith(std::function<void(CRGB&)> func)
|
|||||||
void
|
void
|
||||||
Surface::paintShader(Surface::Shader shader)
|
Surface::paintShader(Surface::Shader shader)
|
||||||
{
|
{
|
||||||
PerfCounter _("paintShader");
|
|
||||||
uint8_t startX = min(start.x, end.x);
|
uint8_t startX = min(start.x, end.x);
|
||||||
uint8_t startY = min(start.y, end.y);
|
uint8_t startY = min(start.y, end.y);
|
||||||
uint8_t endX = max(start.x, end.x);
|
uint8_t endX = max(start.x, end.x);
|
||||||
|
@ -49,10 +49,7 @@ void SolidAnimation::loop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Perfcounter.h>
|
|
||||||
|
|
||||||
void SolidAnimation::render(Display* dpy) const {
|
void SolidAnimation::render(Display* dpy) const {
|
||||||
PerfCounter _("solidRender");
|
|
||||||
CRGB color(m_red.value(), m_green.value(), m_blue.value());
|
CRGB color(m_red.value(), m_green.value(), m_blue.value());
|
||||||
CRGB scaledPrev = m_prevColor;
|
CRGB scaledPrev = m_prevColor;
|
||||||
scaledPrev = color.nscale8(30);
|
scaledPrev = color.nscale8(30);
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include <Figments.h>
|
#include <Figments.h>
|
||||||
#include <ArduinoLog.h>
|
#include <ArduinoLog.h>
|
||||||
#include <Perfcounter.h>
|
|
||||||
|
|
||||||
class Blob {
|
class Blob {
|
||||||
uint8_t m_pos;
|
uint8_t m_pos;
|
||||||
@ -51,7 +50,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void render(Display* display) const {
|
void render(Display* display) const {
|
||||||
PerfCounter _("blobRender");
|
|
||||||
const uint8_t width = 25;
|
const uint8_t width = 25;
|
||||||
auto map = display->coordinateMapping();
|
auto map = display->coordinateMapping();
|
||||||
// Grab the physical pixel we'll start with
|
// Grab the physical pixel we'll start with
|
||||||
|
Loading…
Reference in New Issue
Block a user