[openbeos] Re: openbeos Digest V8 #104
- From: "Raymond C. Rodgers" <sinful622@xxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Thu, 26 Jun 2008 11:06:03 -0400
François Revol wrote:
François Revol wrote:
"François Revol" <revol@xxxxxxx> wrote:
Still calling DrawBitmap a lot on a bitmap that doesn't change
would
be
awful if you force sending it each time, it would void the
purpose.
You don't necessarily have to send it; but you might want to check
(locally) if something changed.
Yes we can always maintain a checksum but that means we have to
calculate it quite often...
François.
Couldn't a call back hook be used instead? Add a pointer that by
default
is null, and everytime a change is made, check to see if that pointer
is
still null. If it isn't, then call the function referenced by the
I don't understand.
apps can use BBitmap::Bits() to get a pointer to the internal bitmap
data.
They usually cache it and use it whenever they feel like it to update
the bitmap, then sometimes later call DrawBitmap or other stuff without
notifying.
There is no way to know when changes happen there.
François.
Hmmm, good point, I had forgotten how BBitmaps work. I was thinking (or
wasn't really thinking about BBitmaps) that specific drawing functions
would be used. Oh well, back to the drawing board on that idea... ;)
Raymond
- References:
- [openbeos] Re: openbeos Digest V8 #104
- From: François Revol
Other related posts:
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
- » [openbeos] Re: openbeos Digest V8 #104
François Revol wrote:Couldn't a call back hook be used instead? Add a pointer that by default is null, and everytime a change is made, check to see if that pointer is still null. If it isn't, then call the function referenced by theYes we can always maintain a checksum but that means we have to calculate it quite often..."François Revol" <revol@xxxxxxx> wrote:Still calling DrawBitmap a lot on a bitmap that doesn't change would be awful if you force sending it each time, it would void the purpose.You don't necessarily have to send it; but you might want to check (locally) if something changed.François.
I don't understand.apps can use BBitmap::Bits() to get a pointer to the internal bitmap data. They usually cache it and use it whenever they feel like it to update the bitmap, then sometimes later call DrawBitmap or other stuff without notifying.
There is no way to know when changes happen there. François.
- [openbeos] Re: openbeos Digest V8 #104
- From: François Revol