TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTOPHER BUTLER
from: JERRY COFFIN
date: 1997-06-22 11:44:00
subject: Graphics routines

On (19 Jun 97) Christopher Butler wrote to Jerry Coffin...
 CB> Hi Jerry!
Hello,
 CB>> (guess what I'm trying to do now)
 JC> Animation perhaps?
 CB> Screen bouncing... (as you see in beat-em-ups when someone gets hurld
 CB> to the ground)...
Ah, for that you'd definitely want to change the start address rather
then moving things in memory...
 JC> If at all possible, I'd avoid ever reading from the screen.
 CB> Hmm... Why's that then? I've always thought its okay, and
 CB> occaisionally, practically essential. eg, a program I wrote
 CB> in QuickBasic drew a random starfield with a little text message
 CB> bouncing around. I could leave the text and starfield routines
 CB> seperate, and just check whether the pixel I was about to
 CB> plot a star to was black, and if not, don't plot the pixel...
Once in a while, under strange circumstances, it's reasonable.  However,
I'd keep in mind that reading from the screen is a LOT slower ( as a
rule) than reading from other memory.  If you can afford the memory,
you're usually better off writing the intermediate stuff to a buffer off
screen, then writing only the final result to the screen itself.
    Later,
    Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.