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:
goyuken 2012-11-24 17:37:40 +00:00
parent f289ce7525
commit fcb0be70f7
2 changed files with 3 additions and 1 deletions

View File

@ -35,12 +35,14 @@ namespace AMeteor
{ {
unsigned short tocommit; 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 // 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 // long time, during this time the lcd must draw and the timers continue
while (m_cycles >= m_first) while (m_cycles >= m_first)
{ {
m_count += m_cycles;
tocommit = m_cycles; tocommit = m_cycles;
m_cycles = 0; m_cycles = 0;