gba: cycle counter for frame timing was completely busted, now fixed, and frames take the expected approximately 280k cycles to complete
This commit is contained in:
parent
f289ce7525
commit
fcb0be70f7
Binary file not shown.
|
@ -35,12 +35,14 @@ namespace AMeteor
|
|||
{
|
||||
unsigned short tocommit;
|
||||
|
||||
m_count += m_cycles;
|
||||
//m_count += m_cycles;
|
||||
|
||||
// this loop is here because a timer can trigger a dma which will take a
|
||||
// long time, during this time the lcd must draw and the timers continue
|
||||
while (m_cycles >= m_first)
|
||||
{
|
||||
m_count += m_cycles;
|
||||
|
||||
tocommit = m_cycles;
|
||||
m_cycles = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue