1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
scrawl 783594033a Optimize MWMechanics::Spells
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.

The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
2015-11-27 01:07:15 +01:00
..
2015-04-22 17:58:55 +02:00
2015-04-25 15:19:17 +02:00
2015-07-25 02:11:49 +02:00
2015-04-28 18:48:02 -05:00
2015-07-25 02:11:49 +02:00
2015-07-25 04:14:22 +02:00
2015-09-12 14:17:46 +12:00
2014-10-20 17:45:11 +02:00
2015-08-21 22:41:31 +12:00
2015-11-27 01:07:15 +01:00
2015-02-15 20:10:21 -06:00
2015-08-04 18:14:36 +12:00
2015-03-06 21:36:42 +13:00
2015-04-22 17:58:55 +02:00
2015-08-21 21:12:39 +12:00
2013-03-23 08:16:46 +01:00
2013-05-19 23:19:48 +02:00
2015-11-27 01:07:15 +01:00
2015-11-27 01:07:15 +01:00
2015-11-27 01:07:15 +01:00
2015-09-06 17:39:48 +12:00
2015-06-03 23:04:35 +02:00