Comments (8)
I guess this is related to #620 , if we're talking about JIT compatibility.
from amiberry.
Closing this as a duplicate
from amiberry.
I had a similar issue a few years ago. If I remember well, after long weeks of tests, I finally solved the problem on the 32 bit version of Amiberry by installing another 68030.library/68040.library file in the LIBS: folder of my Workbench image disk. Then, JIT suddenly worked.
from amiberry.
@Realinferno
The JIT implementation is different for 32-bit and 64-bit targets. So it's possible that there is a bug there somewhere, if it behaves differently between those two versions. However, I didn't write this JIT implementation, so it's very hard for me to figure out and fix such a bug, if it's there. :(
The slowdown behavior you described, sounds a lot like an overheating problem. The Pi4 needs active cooling, and if you're running Amiberry using 100% of it's CPU all the time, it will heat up and it may be throttling down due to that. That would explain why it seems to run fine for a while, but slows down afterwards.
from amiberry.
I had a similar issue a few years ago. If I remember well, after long weeks of tests, I finally solved the problem on the 32 bit version of Amiberry by installing another 68030.library/68040.library file in the LIBS: folder of my Workbench image disk. Then, JIT suddenly worked.
Ok, thanks for the suggestion! I found 68030.library and 68040.library files on Aminet (by Thomas Richter). I will copy these to the LIBS: folder and see what happens.
from amiberry.
@Realinferno The JIT implementation is different for 32-bit and 64-bit targets. So it's possible that there is a bug there somewhere, if it behaves differently between those two versions. However, I didn't write this JIT implementation, so it's very hard for me to figure out and fix such a bug, if it's there. :(
The slowdown behavior you described, sounds a lot like an overheating problem. The Pi4 needs active cooling, and if you're running Amiberry using 100% of it's CPU all the time, it will heat up and it may be throttling down due to that. That would explain why it seems to run fine for a while, but slows down afterwards.
Thanks for your reply! I can imagine this is a hard nut to crack. Do you know who wrote the JIT implementation? Are you able/willing to look into this issue yourself or should I try to reach out to somebody else (e.g., I could e-mail the developer of HstWB installer Henrik Nørfjand Stengaard). Of course, I can provide more details that could help you (or somebody else) to recreate the issue.
Regarding the slowdown, I do use both active (two fans) and passive cooling (heatsinks) on my Pi4. Normally, the temperature of the Pi lies somewhere between 40 and 50 degrees Celcius. However, I have not checked the temperature while running demanding games. So, this is something I will look into.
from amiberry.
Hello,
I have tried/tested various things since my last post. First of all, I installed new 68030 and 68040 libraries (on Aminet, by Thomas Richter). Unfortunately, this did not make any difference (Workbench 3.1 with JIT still crashed on boot-up on my Raspberry Pi 4B, 32-bit installation). @Yserra: perhaps I need different versions of the libraries?
Second, I checked the temperature of my Pi 4B (64-bit installation) when running demanding games like Quake 2 (with JIT CPU & FPU). With both passive and active cooling (two fans), the temperature did not exceed 50 degrees Celsius. So, temperature is not a problem. Games like Quake 2 (as well as Duke3D, Doom 2) run really well (640x480), but still the framerate tends to drop after playing a while. Simply opening and closing the Amiberry menu (within a matter of seconds) solves the problem (it seems like opening the Amiberry menu “re-activates” the JIT?).
Lastly, I also installed Amiberry 32-bit and 64-bit (using Raspberry Pi OS lite 32-bit or 64-bit and HstWB installer) on a Raspberry Pi 3B I had lying around. As such, I was able to compare 4 different installations (Pi 3B/4B, 32-bit/64-bit version of Amiberry), with otherwise the same set-up (Amiberry v5.5.1 installed via HstWB installer, A1200 AGA set-up with 68030 CPU, 68882 FPU, fastest CPU speed, 2MB chip RAM, 128 MB fast RAM, 16MB RTG RAM, same .hdf file running workbench 3.1).
I compared the 4 installations with regard to JIT boot-up and running some more demanding games that would benefit from JIT: Day of the Tentacle and Sam & Max via ScummVM (v1.5.0), Death Rally (latest full version 1.1). The results are as follows:
Raspberry Pi 3B (32-bit)
• Workbench 3.1 boots-up with JIT (CPU & FPU).
• Day of the Tentacle and Sam & Max run well (a bit on the slow side).
• Death Rally runs well.
Raspberry Pi 3B (64 -bit)
• Workbench 3.1 boots-up with JIT (CPU & FPU)
• Day of the Tentacle and Sam & Max crash at start-up (during intro animation), also when only JIT CPU is enabled. Without JIT the Pi is too slow to run the games properly.
• Death Rally starts-up fine, but crashes when starting a race (when the screen changes to the actual race track), also when only JIT CPU is enabled. Without JIT the Pi is too slow to run the game properly.
Raspberry 4B (32-bit)
• Workbench 3.1 crashes on start-up with JIT (CPU & FPU). It does boot-up with only JIT CPU enabled.
• Day of the Tentacle and Sam & Max run well (with only JIT CPU).
• Death Rally runs well (with only JIT CPU).
Raspberry 4B (64-bit)
• Workbench 3.1 boots-up with JIT (CPU & FPU).
• Day of the Tentacle and Sam & Max crash at start-up (during intro animation), also with only JIT CPU. Without JIT both games run well (a bit on the slow side).
• Death Rally starts-up fine, but crashes when starting a race (when the screen changes to the actual race track), also when only JIT CPU is enabled. Without JIT the game runs well.
So, it seems like the JIT implementation in Amiberry still has a few issues. I’m not sure whether the above will help solve these issues. All classic Amiga games I tried out so far (which is quite a lot) run really well. So, all in all, I’m really happy with Amiberry! Perhaps I just need to/should be patient and wait for what the next version of Amiberry will bring. Alternatively, I could try to install Amiberry via a different OS (I heard Manjaro runs Amiberry really well?).
from amiberry.
Can confirm this ~ I see similar behaviour on the RPI4/B here running the 'Pimiga' image ; JIT is pretty much unusable.
Reneg: I had another look at this wrt Pimiga ~ 32bit JIT hurls chunks in libc.6 ...but it's probably not the point here =)
Ergo, I used this image;
Set that up (I use a pironman v2), cloned the amiberry git, compiled with PLATFORM=rpi4-64-sdl2, moved the pimiga disks directory into the fray, and it works fine .... and I have to eat my words about 64bit JIT not working because now it's working fine.
With the pimiga setup at least ~ I'll swing around in the next few days and try those Amiga titles you mention, and report back.
from amiberry.
Related Issues (20)
- Virtual Keyboard is not shown in every Screen Mode (Amiberry 5.6.8) HOT 1
- GUI->Quickstart panel : 'Start in Quickstart mode' checkbox cannot be toggled?
- Doc: GUI->Paths panel -> helptext [update after recent additions]
- A number of Amiga demos have stopped launching [compatibility?] HOT 2
- Magic Mouse Untrap 'capturing' mouse at moment it should untrap? [post #1277 commit] HOT 2
- Graphic issue with Trolls_AGA and Start Problem with Trolls HOT 1
- (master) Scaling is always smooth
- Query: GUI -> Display panel -> helptext
- Query: GUI -> Quickstart -> A600 model selection HOT 1
- Question: Can we handle retroarch.hdf files in GUI->Quickstart->WHDLoad auto-config? HOT 1
- Editing existing harddrive path for DH0: in GUI changes Amiga drive definition?
- WorldGames_v1.0_NTSC_0604.lha - Software Failure - Guru Meditation - error after entering player name HOT 2
- Graphic issue with Zool2_AGA HOT 2
- Doc: fixups for GUI helptexts wrt MT-32 rom scan_path
- Query: GUI -> Quickstart panel feature/presentation?
- Query: config.uae name matching when using floppy images. HOT 1
- Query: can widget visibility be improved when using dark GUI colours? [GUI Theming]
- KMSDRM video regression HOT 6
- ARM 32-bit build does not build through CMake
- Query: GUI ->WHDLoad panel doesn't handle custom field "C2:L:Load Game Position:None,1,2,3,4,5,6,7,8,9" properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amiberry.