when the GUI calls the emulator reference, it does a try_lock call, but then calls functions from the reference which lock the reference to the ram. This could potentially cause a weird "double lock", slowing down the GUI loop and potentially even throwing a lock error in the emu clock loop at faster cycle speeds.
Investigate a better way to organize the GUI refresh loop that doesnt involve potentially double locking the thread + references.
when the GUI calls the emulator reference, it does a
try_lock
call, but then calls functions from the reference which lock the reference to the ram. This could potentially cause a weird "double lock", slowing down the GUI loop and potentially even throwing a lock error in the emu clock loop at faster cycle speeds.