r/EmuDev • • 25d ago

I MANAGED TO CREATE A PYTHON GAMEBOY EMULATOR

I MANAGED TO MAKE A 100% WORKING GAMEBOY PYTHON EMULATOR WITH SOUNDS. I succeeded thanks to some of my friends who found the problem (it was the vram that filled in a loop) i deleted everything, only pieces of code remained that worked in the old project (such as opcodes or keys) and or rewritten the codes from 0 adding ancue the sound and using pypy to speed up the emulator I succeeded

2 Upvotes

9 comments sorted by

1

u/alzdjalybdalzyz 23d ago

I think i need to modify it to make speed similar to actual game but the emulator usually use c or c++ because better performance and easier in terms of time management

-1

u/v_pun215 25d ago

that is insanely slow :(
its not worth it to build any kind of emulator in python due to the language's inability to perform.

6

u/thondat 25d ago

CPython is quite slow, yes, but there's someone else who wrote a gameboy emulator in python and got it to run sufficiently fast by using Cython.

1

u/Economy-Marketing277 25d ago

In realta o rallentato il video e ti starai chiedendo perché. In realta con pypy che rende python piu veloce a migliorato talmente tanto il codice da renderlo piu veloce dell originale se aggiusto il timing e i tick posso farlo girare alla velocita giusta

3

u/thondat 25d ago

Piujuq, kisianili niruariaqaqquuravit tammaqsimanngittumik sukkailligiaqtittinirmik piliriarijarnik, taimanna tarrijagaksaq kajusittiaqtuujaaqullugu.

1

u/purnya232 18d ago

wtf?

3

u/thondat 18d ago

i don't have automatic translation on, so i saw that OP replied in Italian, and i replied to them in Inuktut, assuming their automatic translation would take care of it.

6

u/vizigr0u 25d ago

We're talking about a GB emulator, any language can make it run at 500FPS, it's a matter of optimization

3

u/DevMrDave 25d ago

It is still quite the achievement. Now all they have to do is port it to something like c.