Ykkrosh
05422ad545
Avoid slightly-expensive QueryInterface() calls
...
Add CEntityHandle which wraps an entity_id_t and also has a pointer to a
per-entity array of IComponents. QueryInterface/CmpPtr on a handle just
involve a couple of pointer dereferences instead of a map lookup.
This requires sizeof(void*) per registered interface type per entity,
which is currently ~0.5KB per entity, which shouldn't be a problem.
This was SVN commit r13825.
2013-09-11 20:41:53 +00:00
..
2013-06-23 00:50:24 +00:00
2013-09-11 20:41:53 +00:00
2013-03-25 05:01:36 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2012-08-08 05:18:20 +00:00
2013-02-22 23:20:59 +00:00
2013-07-07 22:44:47 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-10 14:17:04 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-08-18 09:27:11 +00:00
2013-03-05 22:52:48 +00:00
2013-03-05 22:52:48 +00:00
2013-09-10 14:17:04 +00:00
2013-03-13 20:44:48 +00:00
2013-07-07 22:44:47 +00:00
2013-07-07 22:44:47 +00:00
2012-08-09 19:06:01 +00:00
2012-08-08 05:18:20 +00:00
2012-08-08 05:18:20 +00:00
2013-02-22 23:20:59 +00:00
2013-02-22 23:20:59 +00:00
2013-07-07 22:44:47 +00:00
2013-03-23 17:59:54 +00:00
2013-07-16 03:46:30 +00:00
2013-08-03 19:20:20 +00:00
2013-09-11 20:41:53 +00:00
2013-03-05 22:52:48 +00:00
2013-03-05 22:52:48 +00:00
2013-07-17 05:42:16 +00:00
2012-12-06 19:46:13 +00:00
2012-12-06 19:46:13 +00:00
2013-02-03 02:08:20 +00:00
2013-02-03 02:08:20 +00:00