andrew-hoffman / halfnes

An accurate NES/Famicom emulator
GNU General Public License v3.0
163 stars 65 forks source link

about transplant.. #27

Open lysgg opened 8 years ago

lysgg commented 8 years ago

Hello God, I've transplanted your project to android,but it runs very slowly every frame takes 80 milliseconds. It can be full frame running on PC Is the Java jvm on the mobile phone system so much worse than the PC?

magneticflux- commented 8 years ago

In Android, virtual method calls require significant overhead. That could explain some of what is going on. In general though, android devices are slower and require more optimization. I believe that this emulator is more focused on accuracy. There are other emulators that are more inaccurate, but faster.

lysgg commented 8 years ago

oh,other simulator most written by c/c++,them have no challenge. i think add the frame skip method and hold the ppu and apu class methods set at static and final maybe it can run faster.

magneticflux- commented 8 years ago

@lysgg That is possible. Have you conducted benchmarks with the headless version to see whether it is the rendering code or the actual CPU? And are you running it on an emulator?