To contradict myself, it looks like COGL has a blit operation but only
for offscreen objects. Can this be used?
Cheers,
Steve
On Thu, Sep 25, 2008 at 4:30 PM, Steve Smith <[EMAIL PROTECTED]> wrote:
> Yep, one thing I'll experiment with is creating a queue of drawing operations.
>
> It also occurs to me that it would be much better to just shift the
> existing image left and only draw the new section. Is there an OpenGL
> operation that will accellerate this? It doesn't appear to be
> possible in Clutter, Cairo or COGL.
>
> Missing the old Amiga blitter ops :)
>
> Cheers,
> Steve
>
> On Wed, Sep 24, 2008 at 9:49 PM, Pierre-Luc Beaudoin
> <[EMAIL PROTECTED]> wrote:
>> Le mercredi 24 septembre 2008 à 21:45 +1000, Steve Smith a écrit :
>>> Thanks all for the help. Unfortunately I've tried this and idle()
>>> doesn't really fix the problem as it effectively stops the main loop
>>> from updating until it is complete. Unless there's a preemptible
>>> version of idle() I'm probably going to have to uses threads for now.
>>
>> Have you considered drawing only part of the image in your idle
>> fonction?
>>
>>> Thanks,
>>> Steve
>>>
>>> On Wed, Sep 24, 2008 at 9:18 PM, Emmanuele Bassi <[EMAIL PROTECTED]> wrote:
>>> > gaah, I forgot to add some explanatory word. didn't mean to sound rude.
>>> >
>>> > On Wed, 2008-09-24 at 12:12 +0100, Emmanuele Bassi wrote:
>>> >> On Wed, 2008-09-24 at 07:01 -0400, Pierre-Luc Beaudoin wrote:
>>> >>
>>> >> > Actually, that's not clear from what I gave you, but you can call
>>> >> > idle_add directly on "gobject":
>>> >> >
>>> >> > import gobject
>>> >> >
>>> >> > if __name__ == '__main__':
>>> >> > #here or anywhere else btw
>>> >> > gobject.idle_add(on_idle, data)
>>> >>
>>> >> clutter.main()
>>> >
>>> > you need clutter.main() - or any other GLib main loop - otherwise the
>>> > idle handlers (like the timeout handlers) will not run.
>>> >
>>> >> >
>>> >> > def on_idle(self, data):
>>> >> > #do something
>>> >> return False # to remove the idle handler
>>> >> # from the main loop; True will
>>> >> # keep it attached
>>> >
>>> > I never remember what's the default behaviour of python, here; Perl
>>> > would take the return value for the last function and put it on the
>>> > stack as the return value for the function - so:
>>> >
>>> > sub on_idle {
>>> > # do something
>>> > }
>>> >
>>> > would return what the last function of the block returned, even without
>>> > an explitic return. this can be confusing and lead to weird bugs.
>>> >
>>> > in any case, always put a return value for your idle, timeout and event
>>> > handlers.
>>> >
>>> > ciao,
>>> > Emmanuele.
>>> >
>>> > --
>>> > Emmanuele Bassi, Intel Open Source Technology Center
>>> >
>>> > --
>>> > To unsubscribe send a mail to [EMAIL PROTECTED]
>>> >
>>> >
>>
>>
>
--
To unsubscribe send a mail to [EMAIL PROTECTED]