gasman / jsspeccy2

Ground-up rewrite of the Javascript Spectrum emulator
http://jsspeccy.zxdemo.org/
GNU General Public License v3.0
165 stars 43 forks source link

JSSpeccy1 seems to run faster than JSSpeccy2 #4

Open zhuowei opened 11 years ago

zhuowei commented 11 years ago

Using JSSpeccy2 emulating Batty, with sound off, there are often stutters in the animation, particularly when something new happens (e.g. hitting a block for the first time, dying for the first time). Both versions of JSSpeccy1 (2008 version and 2009 version) ran with much less stutter, although the overall emulation speed as represented by the speed of the ball seems to be slower.

Also, JSSpeccy 1 took up less CPU time on my machine (~50% cpu vs ~90% for JSSpeccy2).

Is this a consequence of more accurate emulation in JSSpeccy2 or a regression from version 1?

I'm running both on a Xubuntu Linux computer with Firefox 20 and 1GB of memory. The graphics card is a GeForce 6200 TurboCache with the NVidia proprietary drivers.

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 47
model name      : AMD Athlon(tm) 64 Processor 3200+
stepping        : 2
cpu MHz         : 2000.000
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good pni
bogomips        : 4020.28
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

Linux zhuowei-desktop 2.6.32-48-generic #110-Ubuntu SMP Fri May 31 18:32:53 UTC 2013 x86_64 GNU/Linux

m1zar commented 5 years ago

Hi, just to say, I get the same results. JSSpeccy 1 was way better. The sound/video stutters in JSSpeccy 2, and seems to require more CPU. And, most annoyingly for me, the sound is 'out of sync' with the on-screen action.. try manic miner, the sounds are quite markedly delayed compared to the on-screen action. Not sure what's gone wrong, as I would have thought the byte arrays would have made it all faster and less CPU. Have moved over to using JBacteria... perfect video and sound. But would like to see JSSpeccy 2 be better than JSSpeccy 1. Also, I can't find JSSpeccy 1 anywhere... a link to the previous versions would be handy.