25 December 2017, 10:10 | #1 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
JIT on WinUAE
Ciao Toni, i noticed that when using it JIT the CPU 020/030/040/060 they have the same power/speed, even in some cases 020/030 they are faster 060
Last edited by AMIGASYSTEM; 25 December 2017 at 10:51. |
25 December 2017, 10:16 | #2 |
Registered User
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
|
I can't believe you are surprised...
|
25 December 2017, 10:26 | #3 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
In life you can not know everything
give me a technical explanation, thank you |
25 December 2017, 11:52 | #4 |
Registered User
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 1,976
|
JIT runs as fast as possible - you know how it works, I'm sure, but if you don't then here's a very, very brief and cut-down explanation:
It analyses code as it runs, and blocks of code (usually between branches) are converted into native x86 code. These blocks are stored so that the next time the virtual CPU encounters them it just runs the block instead of emulating. In a (very) good JIT implementation, you can get very close to native speed if you don't have weird graphics and sound stuff to do. In theory the 060 and 020 should be identical from a JIT point of view, but perhaps there are things the 060 does that cannot be neatly fit into the JIT methodology, or perhaps it performs more operations (albeit much much faster) than the 020 for things like tracking memory usage, caches etc which when performed even in native code take away time that could be better used running the Amiga code. So the 020 seems faster because it has less to do. In the real world, the 060 is faster because although it has more to do, it can do it (and the same job the 020 is doing) faster. But JIT levels the playing field and renders the 060 pretty pointless. I'm sure Toni can offer a better explanation. |
25 December 2017, 12:11 | #5 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Yes thanks Dunny, more or less I knew this, but doing some software tests I did not notice any difference, see screenshot, executed emulator DGen (that requires so many resources) and i get same speed itself FPS with either 020 that 060
Last edited by AMIGASYSTEM; 23 January 2018 at 00:00. |
25 December 2017, 13:53 | #6 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Fastest possible has always same speed, CPU model won't make any differene as long as code uses same instructions. (=FPU vs no FPU of course make a difference or if code dynamically selects CPU model specific code but note that JIT does not support all 68020+ only instructions which can make 68020+ optimized code _slower_ in JIT mode.)
It is same in all emulators that has "fastest possible" mode. Real 68060 is faster because thats the whole point of new CPU model!. To have more hardware (cache, scheduling, multiple execution units etc) to execute code faster! |
25 December 2017, 19:26 | #7 |
Registered User
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 1,976
|
Hang on, you just said that you get faster speeds when running 020/030, but now you're saying they're the same speed?
|
25 December 2017, 19:32 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
|
26 December 2017, 04:25 | #9 |
Moon 1969 = amiga 1985
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
|
what's your pc spec ? by the way, the sound is working ?
|
22 January 2018, 20:41 | #11 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Ciao Toni, i found that with the program "WhichAmiga" CPU 68040/JIT turns out to be much faster than the CPU 68060/JIT (more than double),
With each test the values are always different. CPU 68040 From 900 to 1.200 MHz CPU 68060 From 300 To 450 MHz Last edited by AMIGASYSTEM; 22 January 2018 at 23:59. |
22 January 2018, 21:30 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
It is most likely program getting confused by weird CPU speeds. Attempting to guess CPU frequency is hopeless attempt in JIT mode.
Don't trust benchmarks in emulation that try to guess something that can't be measured without real CPU specific behavior assumptions. |
22 January 2018, 21:31 | #13 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Thank you Toni i sensed I wanted confirmation
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FS-UAE / WinUAE x86-64 JIT Compiler | FrodeSolheim | support.FS-UAE | 94 | 30 March 2018 15:43 |
WinUAE: Disable JIT/FPU | AMIGASYSTEM | support.WinUAE | 11 | 30 November 2017 14:10 |
64 bit winuae and JIT | pjhutch | support.WinUAE | 1 | 25 September 2011 01:29 |
WinUAE crashes when switching from MMU to JIT | jotd | support.WinUAE | 1 | 19 November 2010 21:34 |
executable which can stop winuae JIT | turrican3 | request.Apps | 10 | 27 June 2008 00:52 |
|
|