realbasic-nug
[Top] [All Lists]

Re: canvas flicker on windows builds

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: canvas flicker on windows builds
From: John Kubie <jkubie at mac dot com>
Date: Fri, 30 Jun 2006 11:36:03 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <3A4F0703-EAFC-458B-A0A9-3F58491BEDB6 at mac dot com> <p06230901c0cae3fe398d at [10 dot 0 dot 1 dot 8]> <94C22178-0BB7-43F5-82D1-2F34435174A6 at great-white-software dot com>
The flicker I am seeing is unacceptable. As I said before, I would love to see an example of a simple, flicker-free project. An picture and a replacement picture with no flicker. (I think the image has to be reasonably large to see the flicker on most updates). I can't imagine that this is there in all windows applications.

John Kubie

On Jun 30, 2006, at 11:31 AM, Norman Palardy wrote:

I get a lot of flicker in Windows itself (Explorer, Media Player, and several other MS products) so I'm not sure this is not "normal"

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


From  Fri 30 Jun 2006 09:49:43 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id AB3A9750196; Fri, 30 Jun 2006 08:50:58 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on www.realsoftware.com X-Spam-Level: X-Spam-Status: No, score=-1.5 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id D969F75018F;
        Fri, 30 Jun 2006 08:50:55 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id E54D313471AA; Fri, 30 Jun 2006 10:50:41 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from swarthymail-a3.dreamhost.com (mailbigip.dreamhost.com
        [208.97.132.5])
        by lists.realsoftware.com (Postfix) with ESMTP id C741F134719C
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 30 Jun 2006 10:50:35 -0500 (CDT)
Received: from [10.0.1.2] (c-67-174-105-26.hsd1.co.comcast.net [67.174.105.26])
        by swarthymail-a3.dreamhost.com (Postfix) with ESMTP id E2EA57F01A
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 30 Jun 2006 08:50:34 -0700 (PDT)
Date: Fri, 30 Jun 2006 09:49:43 -0600
From: joe at strout dot net
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
In-Reply-To: <E101F8EC-0492-4FC2-8646-F71096CE6C0D at mac dot com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060630155034 dot E2EA57F01A at swarthymail-a3 dot dreamhost dot 
com>
Subject: Re: canvas flicker on windows builds
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On Jun 30, 2006, at 15:36 UTC, John Kubie wrote:

The flicker I am seeing is unacceptable. As I said before, I would love to see an example of a simple, flicker-free project.

There are many, and it's trivial to make such.  As others have pointed out, you 
simply need to avoid calling Refresh; draw directly into the canvas.graphics 
instead, without erasing.

If you want an example, drag two pictures into a canvas, and throw on a 
checkbox with this code:

 if me.Value then
   Canvas1.graphics.DrawPicture picture1, 0, 0
 else
   Canvas1.graphics.DrawPicture picture2, 0, 0
 end if

This will swap pictures on every click with no flicker, even on 
non-double-buffered systems like Windows.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>