9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Ярослав Коломієць" <yarikos@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] vncv sw cursor trail
Date: Tue,  7 May 2013 21:48:41 +0300	[thread overview]
Message-ID: <9EB7F856-7F2C-4E05-8A15-935E3BBCA06F@gmail.com> (raw)
In-Reply-To: <031b7fdd9ab256d19a5c9da921495f73@kw.quanstro.net>


> the issue, and this fact this fix works must mean that
> devdraw(3)'s 'd' command usually doesn't cause (much)
> cursor flicker, but the 'y' command does.
> 
> so either there is a timing or locking problem on the pi,
> or swcursoravoid(r) is not called for the 'y' command.

Correct: swcursoravoid is called from hwdraw; memdraw (the 'd' case) does call hwdraw, memload (the 'y' case) does not.
Other programs avoid the issue because the programs do not load images directly to screen.

I guess what happens is the cursor draw scheduled after swcursoravoid saves part of the remote cursor image which is being drawn in meantime.
This is yet to be verified.

> (and allocating new images might amplify latency.)

The potential latency hit could be avoided by pre-allocating an offscreen storage big enough (double-buffering); this would cost more kernel draw memory though.
So until latecy suffers in practice the cost doesn't worth paying.

Yaroslav


  parent reply	other threads:[~2013-05-07 18:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07  9:02 Yaroslav
2013-05-07 12:36 ` lucio
2013-05-07 14:10 ` erik quanstrom
2013-05-07 14:12   ` Gorka Guardiola
2013-05-07 14:18     ` erik quanstrom
2013-05-07 14:31   ` Anthony Sorace
2013-05-07 18:50     ` Ярослав Коломієць
2013-05-07 18:48   ` Ярослав Коломієць [this message]
2013-05-07 18:54     ` erik quanstrom
2013-05-07 20:19       ` erik quanstrom
2013-05-08 10:40         ` Yaroslav

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=9EB7F856-7F2C-4E05-8A15-935E3BBCA06F@gmail.com \
    --to=yarikos@gmail.com \
    --cc=9fans@9fans.net \
    /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).