mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-04 17:31:50 +02:00
Update to release v000r03.
byuu says: All 512 instructions implemented. To make debugging flags easier and to reduce the code size, I made parent routines for all the bit-logic that sets flags. This bumped up the speed to 3,045fps. So about 51x faster than a real Game Boy. I suspect the frame rate to plummet rapidly as I emulate more stuff and try and get timings more accurate. Wild ballpark, I'd guess 300fps or so. Not based on anything, just a made up number. I have no idea what it will end up being. So I still need: * decode MMIO reads/writes * add CPU interrupt support * add LCD emulation (probably the hardest part) * add PCM emulation (well, this would likely be the hardest; but it's not essential right now) * debug the holy living shit out of the CPU core. Anyone want to help now by looking it over? :D
This commit is contained in:
11
ui/main.cpp
11
ui/main.cpp
@@ -14,11 +14,22 @@ void Application::main(int argc, char **argv) {
|
||||
|
||||
GameBoy::system.init(&interface);
|
||||
|
||||
unsigned frameCounter = 0;
|
||||
time_t timeCounter = time(0);
|
||||
|
||||
while(quit == false) {
|
||||
OS::run();
|
||||
|
||||
if(GameBoy::cartridge.loaded()) {
|
||||
GameBoy::system.run();
|
||||
|
||||
frameCounter++;
|
||||
time_t currentTime = time(0);
|
||||
if(currentTime != timeCounter) {
|
||||
timeCounter = currentTime;
|
||||
mainWindow.setStatusText({ "FPS: ", frameCounter });
|
||||
frameCounter = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user