DMA: Properly handle infinite linked lists, add cycle stealing

Fixes Tekken 2, Hot Wheels Turbo Racing, probably others.
This commit is contained in:
Connor McLaughlin
2020-04-29 16:52:15 +10:00
parent 07e8ddcae2
commit 9d1eb321ec
5 changed files with 118 additions and 26 deletions

View File

@ -394,7 +394,7 @@ protected:
#if 0
const u32 draw_ticks = static_cast<u32>((std::abs(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) + 1u) / 2u);
#else
const u32 draw_ticks = ((width + 1) / 2) * height;
const u32 draw_ticks = ((width + 2) / 3) * height;
#endif
AddCommandTicks(draw_ticks);
}