r/EmuDev • u/Economy-Marketing277 • 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
-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
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.
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