mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
28e0607522
During boot of Other M, there is momentarily a period when VICallback's cycles late is larger than GetTicksPerHalfLine(). Because GetTicksPerHalfLine() returns a u32 and c++'s weird type promotion rules, cycleslate gets promoted from a s32 to a u32 and the result of the substraction is a really large u32. Before ScheduleEvent accuracy improvements, ScheduleEvent took a s32, so the result got cast back to the small negitave we expect. But it now takes a s64 and the u32 to s64 conversion gives us a really large number (around two seconds) and Other M times out while waiting for something.