Ah, I recalled there was a way to ask the window manager to not bother with uploading to the GPU, but I may be mistaken. I cant find it, so I may have imagined it :) Disregard my suggestion :P

 to On Aug 17, 2009, at 9:58 PM, Christopher Wright wrote:

BTW Why is there readback? The Gif is never on the GPU, you can tell the window to reside in main memory.


basic data flow:

gif lives on harddrive. gets loaded to memory (this is probably the slowest operation).
in memory, gets decoded.
gets drawn to a window (even if offscreen, this is probably gpu- backed). This involves a sysram ->vram transfer (slow, but not a show stopper). Then, we need to get window contents in a texture QC can deal with. We can grab a texture of the window, and call it a day. We could do this slowly (glReadPixels) to do 2 more sysram->vram transfers, or we could use a fast copy (glWhateverWeUseToReadInVram, i'm tired and don't recall off the top of my head). Unless there's a fancy way to use an actual window's contents as a texture directly -- this is probably possible (and would avoid readback), but I've not seen it actually done/know if it's supported.

--
[ christopher wright ]
[email protected]
http://kineme.net/


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to