cairo recording surface purpose

"Baldeva, Arpit" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <affbae4cfb3d4255bbdab8ef20c29f46@BLUPR07MB434.namprd07.prod.outlook.com>
Hi,



We use cairo with pixman backend on our port of WebKit. We have been toying with the idea of using cairo recording surface to optimize performance. The basic idea is to use the recording surface in a frame and then fork the actual render operation on another surface in a different thread on a different CPU core. In our initial implementation, it seems like recording itself is a very expensive operation and did not yield much performance benefits. So my questions are



1.       Is it known that recording is actually fairly expensive operation so it is not meant to optimize? We went with this idea as our target hardware have lot of cores but each core has less power. So recording on one core and replaying on another seemed like a good idea.

2.       We have so far not seen any issues but is this thing considered safe in general (multi-threaded access)? Is there anything we should keep in mind?



Appreciate any answers.



--Arpit

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.