System: Basic timings for GPU scanout

This commit is contained in:
Connor McLaughlin
2019-09-17 14:25:25 +10:00
parent 9475c281bd
commit f47688b61f
7 changed files with 268 additions and 34 deletions

View File

@@ -15,4 +15,10 @@ enum class MemoryAccessSize : u32
Byte,
HalfWord,
Word
};
};
using TickCount = s32;
static constexpr TickCount MASTER_CLOCK = 44100 * 0x300; // 33868800Hz or 33.8688MHz, also used as CPU clock
static constexpr TickCount MAX_CPU_SLICE_SIZE = MASTER_CLOCK / 10;