home *** CD-ROM | disk | FTP | other *** search
- Path: www.cybercity.dk!usenet
- From: ccc6004@vip.cybercity.dk (Hans Henrik Happe)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: doubling pixels horizontally
- Date: 10 Feb 1996 10:14:11 GMT
- Organization: CyberCity of Denmark
- Message-ID: <1257.6614T57T922@vip.cybercity.dk>
- References: <4f4ibc$gl9@news.cs.tu-berlin.de> <591.6610T1165T2102@login.eunet.no><1045.6611T753T2256@vip.cybercity.dk><4faoe1$47@sunsystem5.informatik.tu-muenchen.de>
- <2991.6612T1034T625@vip.cybercity.dk> <576.6613T1070T1730@login.eunet.no>
- NNTP-Posting-Host: 194.16.56.103
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
-
- Patrick Hanevold ( patrick.hanevold@login.eunet.no ) wrote:
- >>> not really. to change 100 pixels, you got to write 100 words.
- >>> only fx running 50Hz might work with the trick of writing
- >>> only 50 pix each frame, but then gfx maybe doesn't look
- >>> more like 50pix.
-
- >>A bitmap for this screen would look like this:
-
- >>ChipMem: 0101010101... ; the '0' representing bitplane 0, '1' bitplane 1
- >> ^^^^^^^^^^
- >>Pixel: 0011223344
-
- > To write 01010101 to SHIT-RAM STIL need at least one write.
- > So whats the point?
-
- The point is that you only have to write 1 bit/pixel for each bitplane to display
- 2 pixels with the same color horisontaly as in 2x1. This is not true when you make 2x1
- in the c2p rutine. Then you have to write 320/8=40 bytes per line for each bitplane but
- you only have to calc 320/2=160 pixels/line because you double the pixel width.
-
- In my example I only have to write 128/8 bytes per line. This means a 2x2 fullscreen
- with 160*128=20480 pixels and 256 colors only takes 20480/4=5120 processor long writes to
- chipmem and one blitter pass is only 20480 bytes.
-
- There is a few demos using this kind of blitterscreen with the spritemask. Some of
- the TP5 demos do, I can't remember whitch.
-
-
- Hans Henrik Happe
- Alias Goat / Sumpen
-
-