DMA: Better enforce CPU runtime during linked list

and get rid of the hack for Newman Haas.
This commit is contained in:
Stenzek
2024-04-10 20:00:09 +10:00
parent f63f5d829d
commit 417bf0c3bc
7 changed files with 105 additions and 125 deletions

View File

@ -17,6 +17,7 @@ static TimingEvent* s_active_events_tail;
static TimingEvent* s_current_event = nullptr;
static u32 s_active_event_count = 0;
static u32 s_global_tick_counter = 0;
static u32 s_event_run_tick_counter = 0;
static bool s_frame_done = false;
u32 GetGlobalTickCounter()
@ -24,6 +25,11 @@ u32 GetGlobalTickCounter()
return s_global_tick_counter;
}
u32 GetEventRunTickCounter()
{
return s_event_run_tick_counter;
}
void Initialize()
{
Reset();
@ -293,6 +299,7 @@ void RunEvents()
if (pending_ticks >= s_active_events_head->GetDowncount())
{
CPU::ResetPendingTicks();
s_event_run_tick_counter = s_global_tick_counter + static_cast<u32>(pending_ticks);
do
{