TimingEvents: Remove pointer indirection

Probably should move this to one big array for locality.
This commit is contained in:
Stenzek
2024-07-19 22:56:37 +10:00
parent 56dd9878e1
commit 4f7ddfaae6
16 changed files with 210 additions and 224 deletions

View File

@ -5,6 +5,7 @@
#include "gpu_types.h"
#include "timers.h"
#include "types.h"
#include "timing_event.h"
#include "util/gpu_texture.h"
@ -29,7 +30,6 @@ class GPUTexture;
class GPUPipeline;
struct Settings;
class TimingEvent;
namespace Threading {
class Thread;
@ -370,8 +370,8 @@ protected:
AddCommandTicks(std::max(drawn_width, drawn_height));
}
std::unique_ptr<TimingEvent> m_crtc_tick_event;
std::unique_ptr<TimingEvent> m_command_tick_event;
TimingEvent m_crtc_tick_event;
TimingEvent m_command_tick_event;
union GPUSTAT
{