JayFoxRox / xbox-tools

A collection of tools related to original Xbox
62 stars 11 forks source link

python-scripts: XBDM memory access is slow #11

Open JayFoxRox opened 7 years ago

JayFoxRox commented 7 years ago

XBDM currently uses getmem / setmem which transfers data as ASCII. For larger chunks this will be very slow too (more work + data conversion).

Additionally the memory hook for u8, u16 and u32 requires 3 network packets currently:

This can be changed by directly modifying the xbdm packet instead of communicating through a memory bank. The command could also be extended to read and write data of arbitrary length to solve all issues of XBDM.

This is critical for streaming buffers back to a debugger as valuable time passes during these reads!

JayFoxRox commented 7 years ago

Update: Reading memory uses getmem2 (binary) now. The rest still holds true.