Robert Bragg
3b88029f38
actor: Cache per-actor transforms
...
Previously each time we needed to retrieve the model transform for a
given actor we would call the apply_transform vfunc which would build up
a transformation matrix based on the actor's current anchor point, its
scale, its allocation and rotation. The apply_transform implementation
would repeatedly call API like cogl_matrix_rotate, cogl_matrix_translate
and cogl_matrix_scale.
All this micro matrix manipulation APIs were starting to show up in the
profiles of dynamic applications so this adds priv->transform matrix
cache which maintains the combined result of the actors scale, rotation
and anchor point etc. Whenever something like the rotation changes then
then the matrix is marked as dirty, but so long as the matrix isn't
dirty then the apply_transform vfunc now just calls cogl_matrix_multiply
with the cached transform matrix.
2011-03-07 13:26:20 +00:00
..
2011-02-19 16:47:20 +00:00
2011-03-07 13:26:19 +00:00
2011-02-18 16:35:36 +00:00
2011-02-18 16:35:36 +00:00
2011-01-21 16:18:10 +00:00
2011-03-07 13:26:20 +00:00
2011-02-18 16:35:36 +00:00
2011-02-18 16:35:36 +00:00
2011-02-18 16:35:36 +00:00
2011-03-07 13:26:20 +00:00
2010-05-26 14:09:24 +01:00
2010-05-20 11:19:51 +01:00
2010-10-25 23:44:53 +01:00
2011-02-18 16:53:31 +00:00
2011-03-03 11:47:49 +00:00
2011-02-18 16:53:31 +00:00
2011-03-07 13:26:20 +00:00
2011-03-07 13:26:20 +00:00
2011-02-15 12:40:11 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-03-03 11:47:49 +00:00
2010-10-18 11:26:44 +01:00
2010-07-31 10:56:09 +01:00
2011-03-03 11:47:49 +00:00
2010-09-10 11:18:53 +01:00
2011-03-03 11:47:49 +00:00
2010-06-07 14:22:26 +01:00
2011-02-09 13:29:30 +00:00
2011-02-18 17:51:01 +00:00
2011-01-20 16:35:26 +00:00
2011-01-20 13:29:37 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2010-06-01 12:08:18 +01:00
2011-03-03 11:47:49 +00:00
2009-10-14 11:31:29 +01:00
2011-03-03 11:47:49 +00:00
2011-01-25 11:14:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-01-20 16:35:26 +00:00
2011-01-20 16:35:26 +00:00
2010-10-08 13:29:49 +01:00
2010-03-25 09:41:54 +00:00
2011-03-03 11:47:49 +00:00
2010-03-02 11:12:32 +00:00
2011-03-03 11:47:49 +00:00
2010-11-08 16:01:19 +00:00
2011-03-03 11:47:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-17 17:31:46 +00:00
2011-03-03 11:47:49 +00:00
2010-11-11 13:14:23 +00:00
2011-01-17 15:22:48 +00:00
2011-01-17 15:22:48 +00:00
2011-03-03 11:47:49 +00:00
2011-02-16 14:11:59 +00:00
2011-01-19 14:33:27 +00:00
2011-03-01 19:04:31 +00:00
2010-09-17 12:17:50 +01:00
2011-02-15 12:40:12 +00:00
2011-02-11 16:45:45 +00:00
2011-03-07 13:26:20 +00:00
2011-03-03 11:47:49 +00:00
2010-11-18 18:23:49 +00:00
2009-07-21 09:22:38 +01:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-01-28 18:19:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-21 10:25:43 +00:00
2011-03-03 11:47:49 +00:00
2010-09-07 10:40:49 +01:00
2011-02-18 16:00:39 +00:00
2011-03-01 19:04:31 +00:00
2010-11-18 18:23:49 +00:00
2009-05-29 12:40:23 +01:00
2011-02-28 14:16:23 +00:00
2011-01-21 10:25:43 +00:00
2011-01-21 10:25:43 +00:00
2011-02-28 14:16:24 +00:00
2011-02-28 14:16:23 +00:00
2010-10-21 12:22:17 +01:00
2010-02-15 19:03:37 +00:00
2010-06-07 22:40:34 +01:00
2009-10-14 11:31:29 +01:00
2010-09-08 17:04:21 +01:00
2010-12-10 17:15:39 +00:00
2011-03-03 11:47:49 +00:00
2009-10-14 11:31:30 +01:00
2010-11-17 16:19:10 +00:00
2011-01-20 13:29:37 +00:00
2010-09-29 15:12:57 +01:00
2011-02-18 15:53:27 +00:00
2011-02-18 15:53:27 +00:00
2011-02-18 16:35:36 +00:00
2011-01-21 10:25:45 +00:00
2010-10-25 00:31:36 +01:00
2010-05-24 15:06:14 +01:00
2010-12-02 09:53:00 +00:00
2011-02-28 14:16:24 +00:00
2010-09-10 17:54:52 +01:00
2010-12-02 09:53:00 +00:00
2010-10-18 11:26:45 +01:00
2010-12-09 12:36:50 +00:00
2010-08-10 17:12:06 +01:00
2009-12-02 11:36:25 +00:00
2011-01-10 21:22:22 +00:00
2011-03-07 13:26:20 +00:00
2011-02-28 14:10:05 +00:00
2011-01-21 10:25:43 +00:00
2010-11-17 16:19:10 +00:00
2009-07-10 11:38:42 +01:00
2010-10-18 11:26:44 +01:00
2010-05-19 16:10:05 +01:00
2009-05-05 20:18:28 +01:00
2011-01-21 20:44:17 +00:00
2011-01-21 20:42:52 +00:00
2011-02-28 14:34:36 +00:00
2011-03-04 17:04:02 +00:00
2011-02-28 14:34:36 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-03-07 13:26:20 +00:00
2011-03-07 13:26:20 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2010-10-21 12:22:17 +01:00
2009-10-06 10:43:41 +01:00
2011-03-07 13:26:20 +00:00
2010-09-14 12:43:16 +01:00
2010-09-14 12:43:16 +01:00
2011-02-14 18:41:18 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2010-10-19 01:42:19 +01:00
2011-03-03 11:47:49 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2011-01-20 16:35:26 +00:00
2011-01-20 16:35:26 +00:00
2011-03-03 11:47:49 +00:00
2010-06-03 14:34:41 +01:00
2010-06-16 17:14:57 +01:00
2011-03-03 11:47:49 +00:00
2010-11-18 18:23:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2010-10-21 13:13:00 +01:00
2010-10-21 11:30:19 +01:00
2010-05-19 16:10:05 +01:00
2011-03-07 13:26:20 +00:00
2011-02-08 15:49:19 +00:00
2011-02-08 15:49:19 +00:00
2011-03-07 13:26:20 +00:00
2010-12-30 12:44:13 +00:00
2011-03-03 11:47:49 +00:00
2010-10-18 11:26:45 +01:00
2011-02-19 16:47:20 +00:00
2010-09-23 15:17:58 +01:00
2011-03-03 11:47:49 +00:00
2010-02-03 14:38:13 +00:00
2011-03-03 11:47:49 +00:00
2010-11-18 18:23:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-24 11:52:47 +00:00
2010-11-17 16:19:10 +00:00
2010-11-17 16:19:10 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2011-01-21 10:25:43 +00:00
2010-12-09 13:59:08 +00:00
2010-12-10 17:15:39 +00:00
2011-03-07 13:26:19 +00:00
2010-02-06 10:49:33 +00:00
2010-03-02 11:12:32 +00:00
2011-01-19 14:33:27 +00:00
2010-09-29 14:40:15 +01:00
2011-02-28 14:16:24 +00:00