Elektrine lite

← Feed

@aparrish@friend.camp

Post #3694686

2026-06-30 16:42 UTC

turns out this is very difficult to do in python with reasonable speed, for two reasons (I think, at least?): (a) no easy way to take a list of changes (e.g., a field name/value tuple) and actually update the data structure, without a dynamic look up (which is slow); and (b) you have to allocate and free a bunch of value tuples (and a list to store them in) on each tick (also slow). i've cythoned the hell out of the thing and i'm still running at ~0.1x actual gameboy speed

Replies (1)

  • @aparrish@friend.camp 2026-06-30 16:46

    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!

    Open ##3694685