mihaip / infinite-mac

A classic Mac loaded with everything you'd want
https://infinitemac.org
Apache License 2.0
1.12k stars 67 forks source link

Speed restrictions on BasiliskII based emulation? #239

Closed RonsCompVids closed 9 months ago

RonsCompVids commented 9 months ago

When you run BasiliskII outside of InfiniteMac, it runs as fast of the host machine will allow it to operate... which is especially helpful when doing large file copies or other operations that move at a snails pace on a real Mac.

So why are the BasiliskII based InfiniteMac VMs all seemingly locked to general approximation of the speed of a real Mac?

Would it be possible to remove this artificial speed restriction via the "Customize" menu?

that-ben commented 9 months ago

Could be related to #198

RonsCompVids commented 9 months ago

It's just really odd that it's speed limited at all considering that the regular BasiliskII is not speed restricted in any way.

mihaip commented 9 months ago

There are no speed restrictions (#198 is asking for them because it's still too fast in some cases). Running things under WebAssembly has some overhead, and loading files from Infinite HD has to go over the Internet, so that can also be slow depending on your connection speed.

What specifically is slow?

RonsCompVids commented 9 months ago

If you do a file copy between two volumes on IM (vs running BasiliskII locally), the file copy is extremely slow... like the speed it might be on a real Mac with mechanical HDDs.

If you do the same copy on BasiliskII on a local computer, the copies generally happen at many many times the speed it does out on IM.

that-ben commented 9 months ago

Oh OK, but that is more prone to be your internet connection and/or the server load, because when you copy files from Infinite Mac, it has to download the actual sectors to your browser before it can "copy" them elsewhere. That's way, WAY slower than a native emulator, which directly reads and writes to your local hard drive at like 100MB/s.

I find it normal that it's 20x slower than a native emulator in this scenario. It's expected.

RonsCompVids commented 9 months ago

Thank you, that-ben!