realbasic-games
[Top] [All Lists]

Re: Canvases sometimes black

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Canvases sometimes black
From: Phil M <phil at mobleybros dot com>
Date: Mon, 27 Jun 2005 19:11:18 +0200
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BEE59B2B dot DDC6%larsjensen at rcn dot com>
On Jun 27, 2005, at 6:01 PM, Lars Jensen wrote:

If you need direct drawing for speed, then AutoBufferingCanvas might not be
the best choice. It's meant for the situation "Hmm, I don't like that
flicker -- I'll just insert AutoBufferingCanvas between Canvas and my
subclass and be done with it."

That said, it might be fast enough for some games -- I've used it in
canvases that support click and drag (such as the demo project). 99% of it
is this routine, called by the Paint event:

This code is essentially exactly the same as mine... but I haven't used by BufferedCanvas for games yet.

_______________________________________________
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>