|
CT60 and related things BBS
moved: why c2p ? |
Posted by: evil
|
Aug,15.2003-21:33
|
Reply to Peters message way below.
Why use c2p and not hicol?
Simple: Hicol will be slower.
The game is 256 colours, and using hicol means twice the amount of data to move into chipram.
As the c2p is "copyspeed" the hicolour solution is at least twice as slow (hicolour needs twice the data plus a coloutable lookup).
8bpl 1x1 c2p manages about 450 lines in 1 vbl on CT60/66-16 RGB/50Hz. To do that in hicolour would need 320*450*2 == 288000 bytes, which is impossible to move even with CT60 72/25 and without the extra colour lookup.
Ok, next obvious idea; why not map right into chipram and do the hicol lookup directly? Well some disadvantages:
- Still twice the data to transfer to chip compared to an 8bit c2p
- If you need to clearscreen doing that in chipram is terrible
- Overlays, texts, anything that does overdraw suffers badly
- Chipram stalls; the c2p is phenomenal and nearly kills off all chipram stalls, I don't think you can have a chance to get the texturemapper into "copyspeed" optimiziation like with a c2p.
And for the sake with just quake is of course that the routines work right off with an 8bit buffer.
I've done some tests with a 6pl c2p (should be enough for nice envmappings etc) and it freaking fast. 625 lines in a vbl or so! Meaning 1/3 vbl for c2p and 2/3 vbl to do the efx.. Can be some nice smooth stuff not possible without CT60 :)
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
moved: why c2p ?
|
evil
|
Aug,15.2003-21:33
|
Re: moved: why c2p ?
|
MiKRO
|
Aug,15.2003-22:13
|
Re: moved: why c2p ?
|
evil
|
Aug,15.2003-23:16
|
Re: moved: why c2p ?
|
Anonymous
|
Aug,15.2003-23:16
|
Re: moved: why c2p ?
|
Peter
|
Aug,15.2003-23:21
|
Re: moved: why c2p ?
|
evil
|
Aug,16.2003-01:15
|
Re: moved: why c2p ?
|
earx
|
Aug,19.2003-09:03
|
Re: moved: why c2p ?
|
creature
|
Aug,18.2003-21:08
|
Re: moved: why c2p ?
|
deez
|
Aug,19.2003-10:20
|
Re: moved: why c2p ?
|
creature
|
Aug,19.2003-15:19
|
Re: moved: why c2p ?
|
earx
|
Aug,19.2003-11:55
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|