Mail Archives: djgpp/1998/07/02/17:30:25
From: | Darren Johns <djohns AT csd DOT abdn DOT ac DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: scrolling with allegro
|
Date: | 02 Jul 1998 16:58:51 +0100
|
Organization: | University of Aberdeen, Scotland
|
Message-ID: | <o2k95wmeh0.fsf@csd.abdn.ac.uk>
|
References: | <001a01bda51b$07837e40$624d08c3 AT arthur>
|
NNTP-Posting-Host: | trogon.csd.abdn.ac.uk
|
Lines: | 23
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
>>> One scheme is to create a very large bitmap object that is your level,
>>> and then blit the appropriate piece onto the screen.
>>> --
>>
>>Well that is not memory efficient, but the easiest approach.
>
>
>Not memory efficient. Hmm. Let me see: for a 1600x1600 map (for instance) in
>256 colours - that's 625Mb of ram. (!)
Hmm. interesting maths, I make 1600*1600*1 = 2.44Mb.
You seem to have 1600*1600*256 = 625Mb, thats a colour
depth of 2^2048 (2 to the power 2048), that's an
awfully high number of colours! (I make 2^256 > 1.15*10^77).
Of course if you meant 625M_bits_ of RAM I'll shut up,
otherwise you were out by two orders of magnitude.
/Mark.
--
| To take no action is in itself taking an action, and to have no opinion is |
|/-\| to have an opinion, so are we helpless in what goes on around us?? |/-\|
|\-/|\-/|\-/|\- D Mark Johns. mailto:djohns AT csd DOT abdn DOT ac DOT uk -/|\-/|\-/|\-/|
|_____________________ http://www.csd.abdn.ac.uk/~djohns ____________________|
- Raw text -