Thanx very much for the detailed analysis. I'll try to track down what's happening...
Viewing post in Starwinder (Amiga) - ECS & AGA comments
OK, v1.07 is here. Instead of testing with just WinUAE, I now also test with FS-UAE, Amiberry, Retroarch + puae and MAME. MAME especially has completely different CD32 loading routines, and caught things the others didn't, so that was helpful ;) The game didn't even load with MAME (v1.06) ... changed and now fixed now so it works with all of these.. hopefully will finally work correctly on your CD32.
Unfortunately, the freezing persists.
Very long loading times in version 1.07.
I always measured the recording screen 3 times.
Inserting the game CD (loading screen)
v1.06: 1. 19s 2. 19s 3. 19 sec
v1.07: 1. 1m4s 2. 1m4s 3. 1m4s
World 6 (loading screen)
v1.06: 1. 44s 2. 1m7s 3. 1m7s
v1.07: 1. 2m10s 2. 2m52s 3. 3m30s
World 12 (loading screen)
v1.06: 1. 47s 2. 1m5s 3. 1m5s
v1.07: 1. 3m8s 2. 3m30s 3. 3m16s
World 1 (loading screen)
v1.06: 1. 25s 2. 58s 3. 1m4s
v1.07: 1. 1m7s 2. 2m57s 3. 2m53s
World 2 (loading screen)
v1.06: 1. 59s 2. 30s 3. 59s
v1.07: 1. 1m24s 2. 3m6s 3. 2m52s
The CD spins at a constant speed.
No stopping and restarting.
OK, that's it. Please email me at starwindergame@gmail.com ... I have to either send you some CD-R's... or better (and easier yet) e-transfer some $$ to you for all the wasted CD-R's. It's the least I can do for all your help fixing this! So far I think I know what's wrong with v1.07 ... the game clear Paula's PORTS request after cd_isr runs, so a sector arriving mid-service gets wiped and could leave DMA running. I'm moving the clear ahead of the Akiko service so any request raised during it survives. So far in testing world 6 now loads in 24 seconds instead of 294 seconds, with 51 reads instead of 452 and no overflows. But 3 stalls at stage start which I have to track down... thanx for your patience
OK, I'll definitely try it. You don't have to send money. My reward is that I can help you report problems that occur on CD32. :)
EDIT
Perfect! this is a very useful fix.
The game loading time is now 13 seconds.
W6 (loading screen): 23-30 seconds
W12 (loading screen): 18-24 seconds
W1 (loading screen): 12-23 seconds
W2 (loading screen): 15-23 seconds
I tested W6 and W12 several times.
Noticeable change without screen freezing.
I need more time for testing :)