QuickDraw Speed - Fast Card Benchmarks

phipli

Active Tinkerer
Sep 23, 2021
398
263
63
Curious how you achieve this. NuBus is quite slow compared to the CPU in the Quadra and PPC era. Just sending command over the bus is going to take time. The 8*24GC "solved" the issue by offloading larger chunks of work, but that comes at the cost of compatibility. In my Quadra, the QuadraFPGA destroyed the NuBusFPGA performance-wise even though the internal acceleration engine & acceleration init are the same.
The chip on the card is a late 1996 Cirrus Logic chip - it has a very fast blit engine / accelerated rectangles and SDRAM. I'm trying to minimise register writes and VRAM writes over Nubus (the best I'm getting over Nubus is about 7.5MB/s write, and weirdly only 3.5MB/s read).
Some of the gains are just over benefiting the synthetic benchmark, such as my font and small image caches, other stuff I'm doing 1bit writes and colouring once on the card which especially benefits higher bitdepths (not shown above).

It is probably the fastest Nubus hardware out there to start with, but yes - Nubus being a bottleneck is the biggest issue.

Some stuff I've also cached on the host side so lookups / compares can be done quickly. Basically I've spent every non-work waking minute trying to squeeze every last bit out of it. Sadly its a battle with the cost of patches, especially with line drawing. I really should test on a slower machine where the CPU isn't so fast though - I'm worried I'm dismissing stuff that would benefit an 030.

Also curse Nubus not benefiting from MOVE16 on these machines (as far as I know).
 
Last edited:

phipli

Active Tinkerer
Sep 23, 2021
398
263
63
In my Quadra, the QuadraFPGA destroyed the NuBusFPGA performance-wise even though the internal acceleration engine & acceleration init are the same.
Same would happen here - a PDS card would give huge - insanely huge - gains. Especially in the bitcopy tests and picture, which are copies from RAM I believe. The actual throughput really matters for real world stuff - for example illustrator uses its own routines to memory and then just copies to VRAM, so you only really gain by speeding that copy up and I'm already knocking my head on the ceiling there. This chipset is begging for a faster host connection.

If I was building a card from scratch I'd try and put it in the PDS slot. I wish 040 connectors were more easy to get.

To optimise I used a QuickDraw profiler which recorded all the calls and how long each took. That helped me work out where time was spent, what was worth optimising and also whether I was seeing improvements. I used it to record a few things (Marathon just writes to the frame buffer, so no gains there), but the useful one is the MacBench "Graphics" test, which seems to just replay quickdraw calls like a VCR and gives a good general productivity usage activity to observe.
 

Melkhior

Tinkerer
Jan 9, 2022
115
71
28
The chip on the card is a late 1996 Cirrus Logic chip - it has a very fast blit engine / accelerated rectangles and SDRAM
Help once you're inside... not over the bus :-( (my engine is not "very fast" in the NuBusFPGA as i'ts just a RISC-V core, but its DDR3 beats your SDRAM :) )

But I'm nowhere near that fast - too much overhead sending commands to NuBus, plus the slow m68k path to filer what is sent and what should be kept on the CPU.

It is probably the fastest Nubus hardware out there to start with
... that was available during the NuBus era :) And I'm not sure my little Artix-7 could beat a dedicated ASIC from the PPC era in all honesty...

I'm worried I'm dismissing stuff that would benefit an 030.
The '030 doesn't like if you add too much CPU overhead before going to NuBus...

Also curse Nubus not benefiting from MOVE16 on these machines (as far as I know).
You can do block *read* from NuBus to the memory, the NuBusFPGA does that for the RAM disk IIRC (haven't looked at the code in a while). But you need to know the physical address, so the host has to do the translation first if VM is on.

If I was building a card from scratch I'd try and put it in the PDS slot. I wish 040 connectors were more easy to get.
You're telling me :) The only reason the IIsiA7 Mini exists is because of the lack of '040 PDS connector.

Maybe AI will enable so many PDS '040 project someone will bite the bullet, buy 200 connectors, and resell them to people like you and me...

To optimise I used a QuickDraw profiler which recorded all the calls and how long each took. That helped me work out where time was spent, what was worth optimising and also whether I was seeing improvements. I used it to record a few things (Marathon just writes to the frame buffer, so no gains there), but the useful one is the MacBench "Graphics" test, which seems to just replay quickdraw calls like a VCR and gives a good general productivity usage activity to observe.

Hehe, I did start building a QD acceleration infrastructure with AI (to perhaps improves acceleration in the *FPGA), and I ended up with tracing QD calls in Qemu... try to guess which game I used as one of my inputs :) Great minds think alike :)

Marathon (1994) — a workload nothing else resembles​

tools/install-app.py copies an unpacked Mac application into the image with both forks; tools/marathon-workload.py drives Bungie's Marathon demo from the Finder into a game and walks the character around.

It is the first workload here that is not a desktop application, and it profiles nothing like one:

trapcallspixels
DrawSlab1,222,43384.4%31,283,3857.2%
DrawLine168,36111.6%5,011,1261.2%
StretchBits30,0672.1%208,569,02348.3%
BitBlt27,2351.9%177,638,83641.1%
RgnBlt410.0%9,484,4192.2%

(StretchBits → RgnBlt → BitBlt is a call chain, so these do not sum to a workload total.)