Brought in a fix suggested by Amit but still didn't improve perf. I'll use that to see how Tracy works.

master
Zed A. Shaw 2 months ago
parent 831e15ca18
commit 379ec5846f
  1. 11
      amt/pixel.hpp
  2. 1
      amt/raycaster.cpp

@ -62,8 +62,15 @@ namespace amt {
constexpr RGBA() noexcept = default;
constexpr RGBA(RGBA const&) noexcept = default;
constexpr RGBA(RGBA &&) noexcept = default;
constexpr RGBA& operator=(RGBA const& other) noexcept = default;
constexpr RGBA& operator=(RGBA && other) noexcept = default;
constexpr RGBA& operator=(RGBA const& other) noexcept {
this->m_data.color = other.m_data.color;
return *this;
}
constexpr RGBA& operator=(RGBA && other) noexcept {
this->m_data.color = other.m_data.color;
return *this;
}
constexpr ~RGBA() noexcept = default;

@ -3,6 +3,7 @@
#include "amt/pixel.hpp"
#include "constants.hpp"
#define AMT_LIGHT
using namespace fmt;

Loading…
Cancel
Save