23 March 2014, 23:40 | #21 | ||
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Quote:
EDIT: I noticed something: if the demo is run with JIT-FPU disabled and changed to JIT-FPU enabled at first black screen (just after loading slider), it will play fine. EDIT2: Just tested: Seems to work fine with WinUAE 2.6.1 and JIT-FPU enabled !!! EDIT3: Found it: It is broken in newest WinUAE 2.7.1 b12 version !!! (In b11 it works fine.) p.s. Just guess, maybe something in below changes broke it: (or something else) Quote:
Last edited by amilo3438; 24 March 2014 at 00:35. |
||
25 March 2014, 15:42 | #22 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
winuae.zip should fix it, at least eld-kakao glitches are now gone.
FPU constant value optimization introduced in 1200b3 is now disabled. Code looks correct and it works fine normally, only in some rare situations (no idea what is the trigger) it returns garbage. Probably caused by some unknown JIT side-effect that no one knows except original author.. |
25 March 2014, 18:28 | #23 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Yeah, much better now ... thanks to all that were involved in finding solution !
All previously problematic demos now work fine except: Machinist by Elude -> maybe some small glitches occasionally appear We come in peace by Elude -> small problem on top lines of the screen (see below for other similar problems) Silkcut by The Black Lotus -> still same problem (currently only solution is: JIT-FPU = OFF) Other demos that also has problem with top lines are mentioned on Problematic AGA demos thread: http://eab.abime.net/showpost.php?p=945375&postcount=39 Last edited by amilo3438; 25 March 2014 at 23:13. Reason: correction: accept -> except (and others) ! |
09 April 2015, 09:10 | #24 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Trying to get Silkcut running for video capture and came across this thread.
With JIT FPU enabled there are some gfx glitches on certain effects and the demo quits during the mountain scene. Disabling the option fixes these problems but the demo runs very slow. Is there any chance this one could be looked at? |
10 April 2015, 20:47 | #25 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
Not me. At least unless someone else finds out which instruction causes the problem.
|
22 December 2015, 00:44 | #26 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
@ED-209
Found configuration for Silkcut to run with JIT FPU enabled! (so it will not quit during the mountain scene!!!) Quickstart Model A4000 68040 2MB Chip +64MB motherboard fast (see attached pic. and/or config. file) DH0: demo file attached as archive (Note: to run type: silkcut.exe) Note: tested on winuae 3220! p.s. you can gain on speed if change in the attached config. the following values: win32.cpu_idle=0 cpu_throttle=-440.0 and it should still work fine! (it does on my pc) EDIT:@Toni Found the edge case where it seems to still works fine! (at least on my pc) attached config. "tbl-silkcutfinal.uae" but with following changes: win32.cpu_idle=0 cpu_throttle=-422.0 With changes it seems to still work fine, but not every time! (tested 2 times) Last edited by amilo3438; 22 December 2015 at 04:24. |
22 December 2015, 03:43 | #27 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Thanks amilo. I tried applying a4000 rom / 64mb mobo & cpu throttle settings to my config and the demo crashed at mountain scene with usual 'out of memory' error.
Then I load your config directly and added my hdf to it (for some reason it didn't autodetect correct suface & sector info (!), had to edit that manually). It still crashed with the same error unfortunately. |
22 December 2015, 04:20 | #28 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
What WinUAE version have you used?
I tested it with new WinUAE 3.2.2 -> http://eab.abime.net/showpost.php?p=1057150&postcount=1 and attached config. works fine every time on my pc! p.s. you can also try to create your config file: 1) Quickstart Model A4000 68040 2MB Chip (but change from 8MB to 64MB motherboard fast) 2) change CPU Speed slider to -50% (see attached picture in post #26) 3) attach the demo file "tbl-silkcutfinal.lha" with "Add directory or archive... / Select archive or plain file" 4) start the emu and type "silkcut.exe" (enter) And enjoy the demo! p.s. (to gain more speed) 4) save the config file from winuae 5) open the saved config file with Notepad editor and change following: win32.cpu_idle=0 cpu_throttle=-440.0 6) start the winuae and load the saved config 7) type "silkcut.exe" (enter) Last edited by amilo3438; 22 December 2015 at 04:43. |
22 December 2015, 04:40 | #29 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Yeh, sorry forgot to mention that I'm using the latest version.
I use all those settings, and also your attached config with only change being the HDF, but it still crashes here. I also tried increasing cpu throttle even further but it still wouldn't work. |
22 December 2015, 04:49 | #30 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Quote:
I guess one of these should/might work! (otherwise, I have no idea what else could help)(btw. my cpu is Pentium M @2.13GHz) Last edited by amilo3438; 22 December 2015 at 05:03. |
|
22 December 2015, 05:00 | #31 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Yep, that's what I meant (moving slider further to the left).
My cpu is 3.8ghz dual core. I just tried running the demo without setpatch, as it the only difference I can see by running the archive directly instead of my hdf, still crash at the same spot. (you can see it is your config I am running - scanlines ) |
22 December 2015, 05:06 | #32 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Yeah, the speed of our CPU is different and generations, so that it could be the reason! (I got the same message if winuae cpu_throttle slider is set to -40% ... on -50% it does not happen on my pc)
|
22 December 2015, 05:15 | #33 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Got it! It works here on -90% throttle, any less and it crashes.
Sorry, I must have tried every option before other than 90% The demo is dropping a lot of frames because of the throttle, but it is still smoother then with no JIT at all.. and it is nice to finally see the prod run in full |
22 December 2015, 05:21 | #34 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Great! (which means that the theory is now proven in practice)
So it works fine for you only on -90%! (but not on -80%) Maybe you can gain on speed if change the values in your config file like f.ex.: win32.cpu_idle=0 cpu_throttle=-850.0 I guess it might still work fine! (if not try with -860, -870, -880 or -890) ... (or maybe if -850 works fine you could try with -840, -830 ...) Sorry, I have to go to sleep now! (morning is about to dawn) Last edited by amilo3438; 22 December 2015 at 05:29. |
22 December 2015, 08:41 | #35 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
Obviously this is a demo bug (has assumption that "shouldn't happen" because "this routine can never run that fast", bad thread syncronization, lots of possible reasons) if changing emulation speed affects behavior.
|
22 December 2015, 19:32 | #36 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
On my pc it works fine (no crashing) on cpu_throttle 0% in JIT-Indirect mode! (see on pic. changes done on config from post #26)
Is it because some difference in speed between JIT-Direct and JIT-Indirect mode, or something else!? (not sure) EDIT: Also, in JIT-Direct mode when "No flags" is unchecked it does not crash with cpu_throttle -40% ! (on my pc) CPU Speed = -50% (JIT/No Flags = checked) ... no crashing CPU Speed = -40% (JIT/No Flags = unchecked) ... no crashing EDIT2: @ED-209 As your pc-cpu is almost 2x faster than my pc-cpu (3.8ghz vs 2.13ghz), maybe it would be nice to see if your PC not have problem when cpu_throttle=0% in JIT-Indirect mode (as shown on attached pic. below), perhaps it could prove a new theory!? P.s. I thought if it worked without a hitch on your PC perhaps the problem would not be in speed!? Last edited by amilo3438; 23 December 2015 at 04:51. |
23 December 2015, 02:56 | #37 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Last Train To Danzig by Ghostown & Haujobb -> http://www.pouet.net/prod.php?which=66492
WinUAE 3.2.2 1) Quickstart Model A4000 68040 2MB Chip (change mem from 8MB to 32MB motherboard fast) 2) demo file "gtn_hjb-lasttrain-party.lha" attached via "Add directory or archive... / Select archive or plain file" 3) from CLI "lasttrain-party" (enter) Problem: The endscroll background glitches! (see on pic. below) (not sure is it AGA or JIT problem!) (how should it look check on above link videos) |
23 December 2015, 16:04 | #38 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Quote:
In JIT Direct mode it doesn't quit till cpu_throttle -42%! (so this is the border area for JIT Direct mode on my PC with Silkcut demo!) In JIT Indirect mode it works fine with cpu_throttle 0%!? So I wonder if it would also work fine on some speedier PC in JIT Indirect mode and 0% cpu_throttling? |
|
23 December 2015, 16:26 | #39 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
Direct is much faster than non-direct. And don't attempt to use throttling options in JIT modes to guarantee anything, JIT still can run 1000+ instructions between throttling and if timing sensitive stuff is inside that block of instructions: throttling makes no difference. It becomes only random.
|
23 December 2015, 16:59 | #40 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,503
|
Direct mode is much faster than indirect ... thanks for the explanation!
EDIT: As I recall, Silkcut demo doesn't have problem in JIT Direct mode if JITFPU is OFF! I wonder now if would be somehow possible to adjust only JITFPU to work in Indirect mode? (not sure how much this idea sounds impossible - read stupid... but there are no stupid questions, right?) Last edited by amilo3438; 24 December 2015 at 02:49. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible WinUAE FPU Problem | Ed Cruse | support.WinUAE | 2 | 01 November 2012 16:46 |
Problem with games when JIT enabled | Skirner | support.WinUAE | 19 | 08 January 2010 17:22 |
Problem With Jit Settings | markpage | support.WinUAE | 40 | 20 June 2009 16:01 |
Problem booting with JIT... | Leo42 | support.WinUAE | 3 | 15 June 2009 21:25 |
JIT problem | Unregistered | support.WinUAE | 0 | 19 July 2002 06:00 |
|
|