3 ms·
They werent, and pretty much signed Amigas death warrant. Planar is a cute trick when you are moving around static, limited in color shapes on the screen(less c
by rasz 8y ago
They werent, and pretty much signed Amigas death warrant. Planar is a cute trick when you are moving around static, limited in color shapes on the screen(less colors less writes), but fails miserably at single pixel addressing. All of a sudden updating one pixel costs you 5(ocs), 6(ecs) or 8(aga) individual writes! thus no Wolfenstein3d/Doom on Amiga. Commodore finally tackled this problem 7 months before going bankrupt, just in time as it ran out of money to actually manufacture new product, while still paying its CEO better than IBM.
>Imagine a 320x200 screen with 32 colors. If we had padded each pixel out, it would require 64,000 bytes.
>but you cannot really cut up an array of bytes into 5-bit chunks easily. You could pad it
Sure you can! Nothing forces you to put full 8 bits of actual memory inside video address space. You could transparently translate memory accesses between 5/6 bit and 8 bit in the background, mapping 40-48KB real ram area into 64KB byte addressable window. You could even transparently translate between planar and "chunky" (Akiko). Those were never technical problems, but a result of a lack of affluent leadership. Projects at Commodore were mainly driven by accountants (lets get rid of all the outdated garbage in the storage = C128) and ignorant non technical execs.
- Retric 8y agoLike many optimizations it’s hardware dependent. As you gain more bandwidth, memory, and computing power you want different tradeoffs. Look at the history of DirectX for example and you see a huge range of different approaches show up and then get discarded. Trying to keep up with this curve takes a lot of resources for R&D which is why so much consolidation happened.
- rasz 8y ago"mapping 40-48KB real ram area into 64KB byte addressable window" is couple hundred transistors to implement. VGA came out in 1987.
- Retric 8y agoThat’s not really the issue. With a 16 color pallet and planor graphics you can update one byte to change 8 pixels from one pallet to another. This also means you can really cheaply compress images if you only need say 8 colors. These trick becomes far less useful if you have cycles to spare.
- nitrogen 8y agoIf you had a 5-bit memory could you just leave 3 data lines disconnected?
- cmroanirgo 8y agoYeah. I remember supporting a swathe of color depths for 3dfx and early nvidia & ati. (Eg rgba 5551, rgb 565 or rgba 4444) ... and these were just the more ordinary ones.
- adrianmonk 8y agoIf it signed Amiga's death warrant, it was one of a long list of signatories. If I understand correctly, the performance impacts are complicated and are both worse and better than your quick explanation goes into. An example of how it might be worse: suppose I'm drawing a one-pixel-wide vertical line on a 32-color (5-plane) screen. I not only only need to 5 writes, but I also need to do 5 reads. Because it's a byte-addressable system and I need to change 1 bit but leave the other 7 bits unchanged. So I must read, apply a mask, and write. One the other hand, if I'm copying a bitmap or filling an area, it doesn't create much performance penalty at all. Who cares whether I copy 500 bytes from one buffer memory location to another or 5 sets of 100 bytes from 5 memory locations to 5 others. It also doesn't create much of a performance penalty if I'm drawing a horizontal line because those neighboring pixels are neighboring bits and you can do them all in one go. (You can get crazy and apply this to nearly-horizontal lines too.) An interesting corollary of this is that horizontal lines are way faster to draw than vertical ones.
- rzzzt 8y agoEGA and up handles this by beefing up hardware support for read-modify-write operations and setting/unsetting bits in bulk, eg. you can XOR 8 pixels with a bit pattern on three out of four planes simultaneously with a single memory write.
- boomlinde 8y ago> They werent, and pretty much signed Amigas death warrant. I disagree with the categorical dismissal. IMO it was a good idea in 1985 with 256k chip RAM, not so much in 1994 with 2M chip RAM, post-Doom.