ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
864 stars 105 forks source link

n64: poll gdb more frequently #1512

Closed rasky closed 4 weeks ago

rasky commented 1 month ago

Currently, gdb is polled once per frame, which seems enough for interactive usage. Some ROM hacks would like to use the gdb interface to provide additional emulation-only features such as online multiplayer, but that requires a faster turnaround.

A quick solution is to poll gdb more frequently within the n64 core. This patch does that once per screen line, approximately. Notice that the poll is only scheduled and run if there is a gdb client connected so it should not cause any performance impact on normal users.