[Coco] wanting to patch HPUT routine... (ping RG!)
theother_bob
theother_bob at yahoo.com
Sun Aug 16 12:10:10 EDT 2009
----- Original Message ----
From: Gene Heskett <gene.heskett at verizon.net>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Sunday, August 16, 2009 10:13:13 AM
Subject: Re: [Coco] wanting to patch HPUT routine... (ping RG!)
On Sunday 16 August 2009, theother_bob wrote:
>I'm experimenting with speeding up the cursor drawing routine in Color FOG.
> I've found that while I can get faster results with HPUT, it actually looks
> a bit more "flickery" due to the process...
>
<snip>
>
>My goal is to speed up the process to a single HPUT operation. Basically I
> want to support "transparency" in HPUT by ignoring pixels of palette 0.
>
<snip>
>
>Thoughts? Coding help?
Historically, cursors have been a single xor operation. Put the curser in its
buffer box, xor that buffer to the screen location to draw it, xor the same
data to erase it, then move it to the new location and xor it there. That
reduces the usage of a bunch of buffers to just one, and the screen updates
are going to be about as fast as the coco can do them, which isn't going to be
entirely flicker free. Only use more cursor buffers if you want to have
multiple cursor styles to indicate the sort of an operation that a click will
perform. They of course can be pre-drawn so your proggy only has to do it
once.
>
<snip>
This seems like it would be great for B&W, and I may use it in a hires, 4-color version,
but on HSCREEN2 it mixes the colors, which is "undesirable" in this case.
My cursor uses 3 palette colors, so I have to mask out (zero out) the colors behind it
before ORing it into place.
If the HPUT command included the XOR option, it would probably have been broken anyway,
like the NOT option is.
Bob
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The NRA is offering FREE Associate memberships to anyone who wants them.
<https://www.nrahq.org/nrabonus/accept-membership.asp>
The only "intuitive" interface is the nipple. After that, it's all learned.
(Bruce Ediger, bediger at teal.csn.org, in comp.os.linux.misc, on X interfaces.)
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list