English Amiga Board


Go Back   English Amiga Board > Other Projects > project.CD32 Conversion

 
 
Thread Tools
Old 04 April 2019, 21:52   #81
SKOLMAN_MWS
Registered User
 
Join Date: Jan 2014
Location: Poland
Posts: 168
@turrican3

Akiko performs only graphics conversions from Chunky to Planar, he is not a 3D graphics accelerator. 3D graphics render CPU.

I'm not an coder either.
SKOLMAN_MWS is offline  
Old 05 April 2019, 00:24   #82
Marchie
Registered User
 
Marchie's Avatar
 
Join Date: Jul 2016
Location: Sydney / London
Posts: 589
Pardon the poor fool lost in all these Doom versions but...

Which version will run best on a TF328 and where can I get it?
Marchie is offline  
Old 05 April 2019, 13:29   #83
trixster
Guru Meditating
 
Join Date: Jun 2014
Location: England
Posts: 2,337
Probably DoomAttack which is available on Aminet. You can freely find online the shareware Doom WAD or you can get other commercial wads from places like gog.
trixster is offline  
Old 05 April 2019, 22:19   #84
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Quote:
Originally Posted by Marchie View Post
Pardon the poor fool lost in all these Doom versions but...

Which version will run best on a TF328 and where can I get it?
As already said, DoomAttack with the AKIKO2 c2p routine selected and in single buffer mode.

On a 020@14Mhz Akiko makes quite a difference, as the C2P takes a considerable amount of the processing power available. On the TF330 (v1 firmware) Akiko seems to still be just slightly better than the most optimized C2P.
emiespo is offline  
Old 05 April 2019, 22:46   #85
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Quote:
Originally Posted by turrican3 View Post
Hi guys,
could it be possible to make some parts of the 3d calculate by the main cpu and others parts by akiko ???
I'm not a coder don't kick me too hard !
It would be nice if the 68030 of the TF330 could work in parallel with the 68020 on the CD32 board so that the 68020 could take care of the screen refresh + Akiko C2P, while the 68030 does the "heavy math". But I think this would require another OS, to start with (and is possibly not even supported by the CPU bus).
emiespo is offline  
Old 06 April 2019, 22:23   #86
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
Here are my findings with TF330 using different c2p routines running DoomAttack.
This is after installing the 680x0 libs http://aminet.net/package/util/sys/Mu680x0Libs.

c2p: can't initialize c2p, starts in RTG mode, giving 6-8 fps and very little graphics corruption
c2p_020_optimized: flickers badly, otherwise 10-12 fps. This is the speed I get under WinUAE with a very similar setup. Too bad it flickers.
cp2_020_blitter: starts and immediately crashes with graphic corruption
c2p_akiko: first "software failure" then black screen
c2p_akiko2: this one is actually identical to c2p byte-for-byte so naturally it does the same thing.

looks like I can't play Doom for now

I also tried c2p_020_optimized and turning off data cache. I wrote a startup script that contains this:

Code:
CPU INSTCACHE INSTBURST NODATACACHE DATABURST
stack 20000

cd da08beta4
assign doomhome: ""
doomattack -displayid "0x21000" -nodoublebuffer -joypad -noinputhack -fps -nomusic
Is this how the data cache is supposed to be turned off?
Any help appreciated.
wairnair is offline  
Old 08 April 2019, 01:15   #87
Marchie
Registered User
 
Marchie's Avatar
 
Join Date: Jul 2016
Location: Sydney / London
Posts: 589
Quote:
Originally Posted by trixster View Post
Probably DoomAttack which is available on Aminet. You can freely find online the shareware Doom WAD or you can get other commercial wads from places like gog.
Thanks!
Marchie is offline  
Old 08 April 2019, 09:24   #88
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
wads:

https://github.com/dgeng/iwad
wairnair is offline  
Old 10 April 2019, 09:43   #89
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
Quote:
Originally Posted by wairnair View Post
Code:
CPU INSTCACHE INSTBURST NODATACACHE DATABURST
Is this how the data cache is supposed to be turned off?
Can anyone please advise?
wairnair is offline  
Old 11 April 2019, 00:33   #90
SKOLMAN_MWS
Registered User
 
Join Date: Jan 2014
Location: Poland
Posts: 168
cpu nodatacache

or check:

cpu nocache + cpu instcache burst

http://www.jaruzel.com/amiga/amiga-o...-help/cpu.html

Last edited by SKOLMAN_MWS; 11 April 2019 at 03:19.
SKOLMAN_MWS is offline  
Old 11 April 2019, 17:26   #91
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
thanks. no luck with ALL caches disabled either. I tried with and without 680x0 libs too. I double checked with sysinfo and AIBB that all caches were off.
I'll just let akiko c2p go, I know there's almost nothing in it.

what's interesting is I get graphics artifacts no matter which c2p routine I use.. ehh.

Quote:
Originally Posted by SKOLMAN_MWS View Post
cpu nodatacache

or check:

cpu nocache + cpu instcache burst

http://www.jaruzel.com/amiga/amiga-o...-help/cpu.html
wairnair is offline  
Old 14 April 2019, 01:49   #92
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Quote:
Originally Posted by wairnair View Post
thanks. no luck with ALL caches disabled either. I tried with and without 680x0 libs too. I double checked with sysinfo and AIBB that all caches were off.
I'll just let akiko c2p go, I know there's almost nothing in it.

what's interesting is I get graphics artifacts no matter which c2p routine I use.. ehh.
Let me recap: I had the same issues with the TF330 and the latest V2 firmware (you see a V2 if you go to the Amiga early boot menu). For some reason Akiko stops working or is not detected.

With the V1 firmware (the slightly slower one) Akiko works, including all softwares that make use of it.

You only need to install the MMU libraries (that simply make Akiko accesses non-cacheable) or "cpu nodatacache", but, again this only works with the TF330 V1 firmware.

I am waiting for TF to do some tests with these games, it will take some time, but I am pretty sure he'll find a fix for this weird issue. Akiko *does work* as the CD drive works with both firmwares for me, it's only the C2P bit that is not working.

Anyway, the Akiko C2P is either slightly faster (DoomAttack) or noticeably slower (Wing Commander) than the CPU only C2P...

As for your flickering issue, you should run DoomAttack in double-buffer, and che C2P_020_optimized will give good results with the TF330 V2.

EDIT: just remove the -nodoublebuffer option from DoomAttack command line. That option only really works with Akiko, and gives a small speed increase (~0.5 FPS for me).
emiespo is offline  
Old 19 April 2019, 14:21   #93
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Akiko Fixes

Hi guys, I'm attaching an archive with two files:

1) akikofix: this is a very simple executable that will force the Akiko pointer in the graphics.library. It's intended for TF330 boards with the V2 firmware, on my setup it makes Akiko function again

2) c2p_akiko_fixed: this is the OS friendly C2P routine (c2p_akiko) for DoomAttack. The original has a pointer bug that makes it crash. The only difference with the other routine (c2p_akiko2) is that the former gets exclusive access to Akiko before using it (it will actually lock access to the Blitter, but Commodore was running out of time and money and they couldn't think of anything better than that).

Let me know if it works for you. Akikofix is kinda beta, it will check for the Akiko ID code before doing anything, so it should be safe to run, but it also won't output any message.

PS: bear in mind that 1 this will only make Akiko detectable again by the software, to see a working C2P conversion on a 030, you still need the mmu.library *or* to turn off the data cache.

`cpu nodatacache`
Attached Files
File Type: zip akiko_fixes.zip (1.5 KB, 133 views)

Last edited by emiespo; 19 April 2019 at 14:31.
emiespo is offline  
Old 19 April 2019, 14:41   #94
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
very interesting, I'll check it out when I get home next weekend
wairnair is offline  
Old 23 April 2019, 20:56   #95
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
Here are some results, tested on TF330 with v2 firmware.

akikofix DOES enable detection of akiko c2p, so that's great.
akikofix was in my user-startup throughout testing.

Gloom Deluxe: c2p set to akiko.
CPU NODATACACHE: works, but it's noticeably slower than software c2p with DATACACHE ON.
CPU DATACACHE enabled: totally garbled screen, seems pretty fast though

DOOM: c2p set to c2p_akiko_fixed
CPU NODATACACHE: works, but it starts in "RTG" mode and it's slow (~7fps vs. ~10-11fps expected)
CPU DATACACHE enabled: same thing. it seems akiko c2p doesn't work at all regardless of DATACACHE (I guess RTG mode already tells that akiko c2p doesn't work)

Wing Commander: garbled screen regardless of DATACACHE when using akiko c2p.

I don't have mmu.library + 68030.library working yet. Copying them to LIBS: is not enough, SetPatch needs to be patched with Mu680x0Libs's installer but I was just afraid to run it without a backup. And too lazy to make a backup yet.

Quote:
Originally Posted by emiespo View Post
Hi guys, I'm attaching an archive with two files:

1) akikofix: this is a very simple executable that will force the Akiko pointer in the graphics.library. It's intended for TF330 boards with the V2 firmware, on my setup it makes Akiko function again

2) c2p_akiko_fixed: this is the OS friendly C2P routine (c2p_akiko) for DoomAttack. The original has a pointer bug that makes it crash. The only difference with the other routine (c2p_akiko2) is that the former gets exclusive access to Akiko before using it (it will actually lock access to the Blitter, but Commodore was running out of time and money and they couldn't think of anything better than that).

Let me know if it works for you. Akikofix is kinda beta, it will check for the Akiko ID code before doing anything, so it should be safe to run, but it also won't output any message.

PS: bear in mind that 1 this will only make Akiko detectable again by the software, to see a working C2P conversion on a 030, you still need the mmu.library *or* to turn off the data cache.

`cpu nodatacache`
wairnair is offline  
Old 23 April 2019, 22:56   #96
trixster
Guru Meditating
 
Join Date: Jun 2014
Location: England
Posts: 2,337
Akikofix kinda seems to work for me too, using v2 firmware and testing on DoomAttack.

I’m not using cpu nodatacache, I’ve installed mmulibs.

So even with akikofix loaded akiko_fixed and akiko don’t appear to enable c2p, they both still say operating in RTG single buffered mode.

Akiko2 however does seem to work with akikofix loaded. c2p in double buffered mode now works (before akikofix it reported RTG single buffered) and it gives an extra couple of fps over pre-akikofix RTG single buffered.

In fact, akiko2 with akikofix now seems as fast (maybe a tiny bit faster) than 020 blitter c2p which was the fastest c2p beforehand.
trixster is offline  
Old 24 April 2019, 08:00   #97
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
great
btw, what type of 030 do you have? full or EC030?

Quote:
Originally Posted by trixster View Post
Akikofix kinda seems to work for me too, using v2 firmware and testing on DoomAttack.

I’m not using cpu nodatacache, I’ve installed mmulibs.

So even with akikofix loaded akiko_fixed and akiko don’t appear to enable c2p, they both still say operating in RTG single buffered mode.

Akiko2 however does seem to work with akikofix loaded. c2p in double buffered mode now works (before akikofix it reported RTG single buffered) and it gives an extra couple of fps over pre-akikofix RTG single buffered.

In fact, akiko2 with akikofix now seems as fast (maybe a tiny bit faster) than 020 blitter c2p which was the fastest c2p beforehand.
wairnair is offline  
Old 24 April 2019, 09:10   #98
trixster
Guru Meditating
 
Join Date: Jun 2014
Location: England
Posts: 2,337
EC, so doubtful that mmu.library is doing anything. Should maybe have just installed the 68030.library and 680x0.library

Last edited by trixster; 24 April 2019 at 09:38.
trixster is offline  
Old 24 April 2019, 21:54   #99
wairnair
Registered User
 
Join Date: Jul 2017
Location: Budapest
Posts: 355
akiko2 c2p + akikofix + CPU NODATACACHE works indeed (still have no mmu libs, but I might try)!

however, I found a very strange error: once I save the game, it stutters for ~2 secs and freezes completely.
Then after pressing the reset button the TF330 is no longer there together, gone completely. The CD32 chime and boot screen comes up!
Very strange.
wairnair is offline  
Old 24 April 2019, 22:25   #100
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Quote:
Originally Posted by trixster View Post
EC, so doubtful that mmu.library is doing anything. Should maybe have just installed the 68030.library and 680x0.library
I'm glad to have helped with this. I also have a 68EC030, but the MMU library (and table) still works for me. Without the mmu.library, I'd have to completely disable the cpu datacache, thus losing a bit of performance.

The archive is quite up to date (a few days ago) and it comes with an installer that *will do a backup copy of everything* including setpatch.

Interestingly enough, with highly optimized C2P routines (or maybe simpler games ), Akiko seems slower. Given the silly way it works, I guess that anything above a 68030 would be faster as well.

The original "c2p_akiko" found in DoomAttack has a (bad) bug, so it's pretty normal if the CD32 crashes with it. I've added a fixed version in the Aminet archive, you should copy that in the DoomAttack/C2P folder and delete the old one.

The "c2p_akiko2" doesn't have the bug, and also works in single-buffer (thus it is slightly faster than 020+Blitter, that only works in double-buffer mode).

All in all, I'd say that getting Akiko back is also nice if you use the Workbench (anything writing to the screen with WriteChunkyPixel() will be much faster, unless you also patch that with one of the many patches on Aminet ).

I would be interested to see if a full 68030 gives better results with the MMU driver on Fusion, but I haven't seen anyone with a TF330 with a full 030
emiespo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unofficial CD32 Release - The Ultimate Amiga Dizzy Collection CD32 Amigajay project.CD32 Conversion 25 19 October 2019 00:54
Unofficial CD32 Release - System 3 Collection Amigajay project.CD32 Conversion 4 28 September 2017 16:00
Unofficial CD32 Release - SCAS 2016 Amigajay project.CD32 Conversion 4 30 January 2017 11:22
Unofficial CD32 Release - Hunter CD32 - 25th Anniversary Edition Amigajay project.CD32 Conversion 12 15 August 2016 09:17
Unofficial CD32 Release - Star Wars Trilogy CD32 Amigajay project.CD32 Conversion 10 23 June 2016 17:06

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.18797 seconds with 14 queries