i'm making a gameboy dmg emulator. but i'm stuck at implementing the ppu. i have two…
- User
i'm making a gameboy dmg emulator. but i'm stuck at implementing the ppu. i have two questions. 1- does the ppu and the cpu run at the same clock? Or the ppu wait for the cpu to end its instruction to execute? 2- what does the ppu do doing a cycle? render a line? a frame? fetch sprite? what does it do?
Assistant
-
The PPU and the CPU do not run at the same clock. The PPU has its own clock, which is independent of the CPU clock. The PPU clock is four times faster than the CPU clock, so for every four CPU cycles, the PPU executes one cycle. This means that the PPU is constantly running, even when the CPU is not doing anything.
-
During each cycle, the PPU performs a series of tasks. These tasks include:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.