29 December 2022, 20:46 | #1 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
Detect A500 Mini environment
Hi guys!
I'm wondering if any trick exists to detect when code is being run on A500 Mini...? Thanks |
01 January 2023, 11:42 | #2 |
\m/
Join Date: Nov 2008
Location: Devon, U.K.
Posts: 573
|
|
05 January 2023, 18:07 | #3 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
This would detect a UAE environment but not specifically an Amiga Mini one?
|
05 January 2023, 19:34 | #4 |
Registered User
Join Date: Apr 2020
Location: England
Age: 53
Posts: 436
|
I just tested detectuae on my a500 mini and it worked fine. The a500 mini uses Amiberry 3.3 which is based on UAE so accepts commands like uae-configuration etc...
|
05 January 2023, 20:53 | #5 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
but it's not specific to A500 mini, correct?
|
05 January 2023, 21:21 | #6 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,169
|
Why do you want to detect the a500 mini exactly? Unless they provide an official way of detection you're bound to get false negatives/positives now or in the future. If you want to check if e.g. a 3 button controller is available (or whatever) check for that directly.
If it's just for yourself then you could probably measure the execution time of a specific set of instructions and see if that's in some predefined time range (in addition to checking if you're running emulated). |
05 January 2023, 22:14 | #7 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
For the same reasons one would want to detect UAE: to make some code run better or not at all.
Checking for timings could be one way but it's a bit too generic as a solution. I was asking if something similar to the UAE check but specific for mini was already available. I'm not sure what "just for yourself" is supposed to mean. I'm also confused about the official way of detection, is checking for uaehf.device official? |
06 January 2023, 11:11 | #8 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,221
|
the mini is just a pi3 variant running an emulator anyways so detecting UAE is kinda the right way to go about it.
|
06 January 2023, 11:32 | #9 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
OK, kinda right but not specific. I mean, you can tell it's not real hardware only, not if it's a mini.
|
06 January 2023, 11:47 | #10 |
Junior Member
Join Date: Sep 2001
Location: No(R)Way
Age: 42
Posts: 3,215
|
Well the mini is just running an emulator...
|
06 January 2023, 11:57 | #11 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
The core of the question was if there was a way to detect it specifically, reckoning there isn't one from the simple fact it's an emulator itself isn't a very tech approach to the question.
|
06 January 2023, 12:13 | #12 |
Thalion Webshrine
Join Date: Jan 2004
Location: Oxford
Posts: 14,414
|
The answer is no you can't detect A500 Mini from other UAE based devices. Not unless they change(d) the emulator. I mean they could have if they had wanted to. But I very much doubt they did.
|
06 January 2023, 12:27 | #13 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 670
|
Thanks Alexh, for the answer and for not dodging the question
|
06 January 2023, 18:51 | #14 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,169
|
Quote:
Wasn't trying to be dismissive of the question, but usually it's better to rephrase it. If you have code that's better on an a500 mini why not run it if it's an amiberry with similar specs? For example: Instead of say detecting a 68030 processor and then using a specific C2P routine, maybe it's better to time the generic function vs. the 030 specific one and selecting the best performing one instead of just checking AttnFlags. Or if you want to select keyboard input as the default for WinUAE on your PC but not on your a500 mini, check if there's a good controller connected instead. |
|
06 January 2023, 19:21 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,540
|
Trying to detect emulation is generally not very good idea because there can be dozens of different configurations and some of them does not even have any "UAE" devices. Trying to detect these can break in any version.
|
06 January 2023, 19:24 | #16 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,014
|
One way to detect for emulation that is usually 100% effective is disk loading timing.
Because WinUAE and other emulators are usually accurate when it comes to loading via ADF, usually people ramp up the floppy loading speed. Absolutely easy to detect this on emulated, A500 Mini and real Amiga. |
06 January 2023, 20:02 | #17 |
Thalion Webshrine
Join Date: Jan 2004
Location: Oxford
Posts: 14,414
|
There are lots of other ways. Chip RAM or blitter speeds. But non will detect A500 mini against say RPi running UAE
|
06 January 2023, 22:03 | #18 | |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,959
|
Quote:
So I am on the safe side as I leave this settings alone (real speed) . By the way, I don't get the point from OP to try to determine if a program is run from an emulator or from real hardware... |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A500 Mini | Marmo | Retrogaming General Discussion | 9 | 25 May 2023 12:46 |
A500 mini with modem? | Ghost64 | support.Other | 2 | 18 August 2022 00:56 |
A500 Mini - A500 LED trigger | AdyJ66 | support.Hardware | 0 | 30 June 2022 18:16 |
Yet ANOTHER A500 Mini Review... BUT... | EmuChicken | Amiga scene | 0 | 23 April 2022 12:09 |
A500 Mini - Ambermoon | Fenris | project.WHDLoad | 2 | 15 April 2022 20:54 |
|
|