dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS
https://dirkwhoffmann.github.io/vAmiga
Other
293 stars 24 forks source link

Game behaves very erratic on the Mac version, while on vAmigaweb it is smooth #760

Closed rhinoid closed 1 year ago

rhinoid commented 1 year ago

When running my old game on the Mac the framerate is all over the place which makes playing the game very tricky. Strangely enough, when running the web version of vAmiga the framerate does seem more constant. Mac used: 2019 Macbook pro. Game used: 2 disk game Hoi. If you want I can attach it to this thread.

rhinoid commented 1 year ago

Ah my apologies if this issue conflicts with the beta vsync feature I'm just reading about as an open issue.

dirkwhoffmann commented 1 year ago

My first guess would be that warp mode kicks in during disk transfers. VSYNC wouldn't cause such behavior.

rhinoid commented 1 year ago

Warp is turned off and I'm sure there is no disk activity while the game runs. When I look at it it most resembles that every few frames it stops rendering a handful of frames and then renders again. Which makes for the stuttery experience. Maybe it tries to keep up but is just on the edge of what is possible?

dirkwhoffmann commented 1 year ago

Warp is turned off and I'm sure there is no disk activity while the game runs.

Hmm, OK. Could you post a screenshot and the exact name of the ADF you're using? Please don't post the ADF itself. I'll have a look at it.

rhinoid commented 1 year ago

Cool. It's available on archive.org undder the name: "Hoi (Let's Play!) Amiga game" It's a 2 disker but only uses Df0 so at some point you need to swap.

In any case, as soon as level1 starts (the green dragon next to his shoe) it should already be apparent what I'm talking about. Let me know if this is enough info to get you there. Thanks!

dirkwhoffmann commented 1 year ago

It's available on archive.org undder the name: "Hoi (Let's Play!) Amiga game"

Thanks, got it.

The emulator runs in warp mode, because the game doesn't turn off the drive motor which is indicated by the green drive led in the status bar (normally, the led is grey). The debugger shows all details:

Bildschirm­foto 2022-11-24 um 13 42 31

You can alter this behavior either in the preferences or by clicking the hourglass icon in the status bar:

Bildschirm­foto 2022-11-24 um 13 43 10
mithrendal commented 1 year ago

The same reason why we couldn’t enable warp during disk load in vAmigaWeb in https://github.com/vAmigaWeb/vAmigaWeb/issues/137

rhinoid commented 1 year ago

Thats weird, in my version (Version 2.1 (220812)) the preferences says: Warp mode activation "Never". And in the bottom right corner I see not an hourglass but a lock:

Screenshot 2022-11-24 at 15 25 17

And yet I have the stuttering... Should I be on a later version?

mithrendal commented 1 year ago

left to the lock it shows the warp speed comparable to Mhz... i.e. if constantly 7.01 then warp is off. Could you tell us what you see for numbers ?

dirkwhoffmann commented 1 year ago

And yet I have the stuttering... Should I be on a later version?

No, version 2.1 is fine.

It works flawlessly here (great game, btw!!). I guess it must be something machine specific.

https://user-images.githubusercontent.com/12561945/203809520-6f2660f6-0f82-4f55-b514-dbf44c0519a7.mov

dirkwhoffmann commented 1 year ago

What CPU load do you get on your machine while the game is running? To display the CPU load, click on the marked icon in the status bar.

Bildschirm­foto 2022-11-24 um 15 38 16
mithrendal commented 1 year ago

It is so hard to let it catch the banana while not let it to die ... I finally managed it 😎... you have to jump in a very flat angle to the right.... in my opinion it should be awarded by more than the 50 points 🤓...

rhinoid commented 1 year ago

https://user-images.githubusercontent.com/2438289/203812199-99f14030-276c-4d2d-91e8-fd0f826a89ae.mp4

Attached is a screencapture of the mac itself (cmd-shift-5) and then handbraking it (ffmpeg frontend) to get it a bit smaller in size. The stutters are quite visible in it. As is the processor power needed (around 20%).

(haha yes I don't know if it is even possible to collect every fruit. The goal however is to collect the black diamonds. (Or just get to the end of the level))

dirkwhoffmann commented 1 year ago

I'm closing the issue for now, because I am not able to reproduce it (hence, I don't know how to debug it).