Mr. 64 Wrote:I want to ask you a question about emulation of CPU based famebuffer effects. If the CPU reads from or writes to the framebuffer how does dolphin deal with this? You say you apply these changes to the framebuffer in VRAM, but how does dolphin do this? Does dolphin copy any data from RAM to VRAM or from VRAM to RAM to emulate this?All of those kind is possible. The CPU can both read and write into the mapped buffer: https://github.com/dolphin-emu/dolphin/b...r.cpp#L348
The GPU however can copy parts of the framebuffer to the main ram, but this is not trigger-able by the CPU: https://github.com/dolphin-emu/dolphin/b...er.cpp#L90