jsdf / pce

Emulates Mac Plus, PC, & Atari ST in the browser using WebAssembly
https://jamesfriend.com.au/pce-js
GNU General Public License v2.0
864 stars 154 forks source link

Updated npm package or information for assembling the -data file #17

Open gohai opened 5 years ago

gohai commented 5 years ago

Hello @jsdf,

Thanks a lot for your work on making emulation on the web possible!

I am interested in trying out pce-js together with some old OS 6 software I've written. I got it to run using the published npm module and instructions, but it seems it is not quite fast enough (I am seeing system to slow messages in the console).

Since the npm module was last updated five years ago, and I don't see the message

Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!`

on https://jamesfriend.com.au/pce-js/system6/, I am wondering whether this repo has some updates that the version on npm is lacking?

I've tried to build this repo myself, but my version of macOS didn't come with LLVM, and I wasn't able to modify /usr/bin to link the version installed by brew.

If you have some time to publish an updated npm package, that'd be greatly appreciated. (If it'd be straightforward to re-build the -data file that is used on your website with a custom config and custom image files, that'd be super helpful too.)

Thanks, gohai

jsdf commented 4 years ago

None of the log messages you mentioned would stop it from working.

I've updated the readme on npm slightly, however the instructions are mostly the same. Did you try following the instructions exactly to see if it works before trying to modify it to run your custom disk image? You don't need to build the repo from source.

The version on my website is very old, and the -data file was only necessary before I added the functionality to load files using the autoloadFiles array in the arguments passed to pcejs-macplus.

gohai commented 4 years ago

Thank you, @jsdf, for your response and update!

I believe I must have thought that the version on your website is newer (and potentially: faster), as it wasn't showing this warning. But I was able to follow your instructions now, and they work for me.

(I guess there is isn't an easy knob to increase the speed of the emulation? I am still seeing the system too slow messages in the console, and animations feel slow compared to mini vMac)

In any case: feel free to close this issue, and thanks again!