cairo/util/cairo-script
Chris Wilson 411c09eed7 perf: Enable a surface cache for perf-trace
Real applications that control their Drawable externally to Cairo are
'disadvantaged' by cairo-perf-trace when it creates a similar surface
for each new instance of the same Drawable. The difficulty in
maintaining one perf surface for every application surface is that the
traces do not track lifetimes for the application surfaces, so we would
just accumulate stale surfaces. The surface cache takes a different
approach and returns the same surface for each active Drawable, and
maintains a hold-over of the MRU 16 surfaces. This achieves 60-80% hit
rate with firefox, which is probably as good as can be expected.
Obviously for double-buffered applications we only every draw to freshly
created surfaces (and Gtk+ bypasses cairo to do the final copy -- the
ideal application would just use a push-group for double buffering, in
which case we would capture and replay the entire expose event).

To enable use of the surface cache whilst replaying use -c:

  ./cairo-perf-trace -c firefox-talos-gfx
2010-01-22 23:01:46 +00:00
..
examples [script] Add examples 2008-12-12 12:00:44 +00:00
.gitignore gitignore: refresh 2010-01-22 22:30:43 +00:00
cairo-script-file.c Fix errors found by clang 2009-08-29 08:08:39 +01:00
cairo-script-hash.c [script] Manage used entries within hash tables 2009-06-06 13:52:20 +01:00
cairo-script-interpreter.c [script] Read from a FILE stream 2009-08-29 08:08:37 +01:00
cairo-script-interpreter.h perf: Enable a surface cache for perf-trace 2010-01-22 23:01:46 +00:00
cairo-script-objects.c [build] Add options for warning about bad casts 2009-08-29 08:08:38 +01:00
cairo-script-operators.c perf: Enable a surface cache for perf-trace 2010-01-22 23:01:46 +00:00
cairo-script-private.h [build] Add options for warning about bad casts 2009-08-29 08:08:38 +01:00
cairo-script-scanner.c Add xml surface 2009-08-29 17:07:34 +01:00
cairo-script-stack.c [script] Missing include for INT32_MAX 2009-05-08 08:52:32 +01:00
COPYING Add CairoScript interpreter 2008-11-13 11:36:55 +00:00
csi-bind.c Fix build under distcheck 2009-07-15 13:26:34 +01:00
csi-exec.c [script] Recreate surface content. 2009-01-02 09:53:24 +00:00
csi-replay.c [script] Extend csi-replay to show how to use a single surface 2009-08-06 23:19:52 +01:00
csi-trace.c [script] Introduce cairo_script_context_t 2009-08-29 08:08:36 +01:00
Makefile.am [script] Conditionalise the build 2009-08-29 17:07:37 +01:00