From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] vnc[vs] implementation question
Date: Tue, 18 Jun 2002 13:14:19 -0400 [thread overview]
Message-ID: <f8a596b169cdb9c99614cfad8d611802@plan9.bell-labs.com> (raw)
> in XaoS' case, unfortunately, one can't use this approach, because the
> pixels are written by the program in CMAP8 format (and the image used
> in loadimage(); is alloc-ed in CMAP8 too) and if the screen is
> anything else loadimage(screen, ...); fails...
you could have two images, the cmap8 one and one
the depth of the screen. then do
loadimage(icmap8);
draw(iscreenchan, icmap8);
draw(screen, iscreenchan);
the final draw is the only one that can be seen.
by making it a draw between images of the same
format you've reduced it to memmove, so the flicker
should go away. conversion from cmap8 goes significantly
slower than memmove.
> it'd be great to have routines that convert between format en masse
> (similar to the ones in color(2)), but that's just as expensive as
> doing a loadimage();draw() combination.
again, i don't think it's the total expense
so much as the speed of the operation that the
user actually sees.
next reply other threads:[~2002-06-18 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-18 17:14 Russ Cox [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-06-18 17:48 andrey mirtchovski
2002-06-18 17:03 andrey mirtchovski
2002-06-18 16:00 Russ Cox
2002-06-18 15:54 andrey mirtchovski
2002-06-18 15:51 Russ Cox
2002-06-18 15:43 andrey mirtchovski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8a596b169cdb9c99614cfad8d611802@plan9.bell-labs.com \
--to=rsc@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).