lkesteloot / alice

Website documenting a hardware project from the 1990s.
http://lkesteloot.github.io/alice/
Apache License 2.0
74 stars 9 forks source link

Add CZCLEAR command #39

Closed lkesteloot closed 7 years ago

lkesteloot commented 7 years ago

The FPGA can clear both the color and Z buffer at the same time, so add a CZCLEAR command that takes both a clear color and Z value. We may have to port the demos to use czclear() if they don't already.

We can then keepCLEAR and ZCLEAR, or remove them and add two bits to CZCLEAR to specify which to do, or port all demos to czclear() and not support clear() and zclear().

lkesteloot commented 7 years ago

Added CZCLEAR to the protocol document (value 8), to the FPGA, and to the test program. Assigning to @bradgrantham to implement the GL side and demos.

In the test program, clear() and zclear() individually take 4 ms. The new czclear() command takes 5 ms. I don't know why it's slower, but I'm guessing memory contention.