Post #3694685
2026-06-30 16:46 UTC
real-time operation isn't a priority for me, BUT it's really annoying to have to wait forever for long-running tests to finish :( i'm writing it in python because that's the language i can write things in fastest, and because it seems valuable to have an emulator that is deeply scriptable, but i might need to reconsider!
Replies (1)
-
@aparrish@friend.camp 2026-07-02 00:40
got rid of the dynamic lookups by keeping the state in an array of ints instead of a struct, with an enum for offsets into the array to access particular registers etc., which gave me a 2x speed increase. i think the only sustainable solution here is to literally never let python allocate an object anywhere in the "inner loop" (which was honestly obvious from the beginning but i was Hopeful)