Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Basilisk II] Ability to run CPUs emulation at roughly native speed #117

Closed
vashpan opened this issue Mar 15, 2022 · 5 comments
Closed

[Basilisk II] Ability to run CPUs emulation at roughly native speed #117

vashpan opened this issue Mar 15, 2022 · 5 comments

Comments

@vashpan
Copy link

vashpan commented Mar 15, 2022

Originally (from what I understand) Basilisk II was built in the times where classic MacOS was still a very alive product, with CPUs 10s or maybe even 100s times slower than today, and having the fastest possible emulation was one of the main goals. But we're way past of having any trouble in emulating 68k CPUs, and now the opposite is the problem. Emulation often runs WAY too fast, even without JIT.

This may also pose problem with emulation, as some apps may work incorrectly at those insane speeds.

It would be handy to have a flag that would limit CPU speed to more real values. It doesn't have to be accurate, but a rough estimation, depending on emulated CPU type and clock speed.

I know UAE core is able to support this, so maybe it won't be so hard to add, as a simple flag in settings file.

@kanjitalk755
Copy link
Owner

Try:

https://github.com/kanjitalk755/macemu/tree/test_delay

Append prefs file to:

delay 1000

The value is the extra delay (micro seconds) every 64k instructions.

@vashpan
Copy link
Author

vashpan commented Mar 17, 2022

Thank you for that 🙂 I just tested it, and it seems to work as expected 👍

Although for sure a "proper" limiter would be nice as well, depending on CPU model and speed. I may try to experiment with that.

@kanjitalk755
Copy link
Owner

Merged to the master.

@RonaldPR
Copy link

RonaldPR commented Apr 2, 2022

Does this work for BasiliskII only or also for SheepShaver?

@kanjitalk755
Copy link
Owner

BasiliskII only.
This feature will slow down the maximum speed slightly and will not be implemented in SheepShaver unless requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants