1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-17 11:43:25 +00:00
OpenMW/components
Bo Svensson 031871cd48
speeds up optimizer (#3162)
We can expect marginally improved loading times with this PR. Drawable, Transform and Node counts in stats panels are expected to remain unchanged - this PR does not add new scene graph optimisations, it just increases the speed with which we apply existing ones.

1. We add explicit `NodeVisitor::apply` overrides for commonly encountered node types to avoid additional virtual function calls per node associated with the default `apply` implementation.
2. We skip pushing `StateSet`s when  `_mergeAlphaBlending` is enabled or the `StateSet` contains no relevant state.
3. We add a specialised variant of `CollectLowestTransformsVisitor::addTransform` accepting `MatrixTransform` to avoid matrix copies and multiplications.
2021-10-10 18:09:15 +02:00
..
2021-06-24 19:21:29 +00:00
2021-05-12 10:34:39 +04:00
2021-10-05 22:51:12 +02:00
2021-07-27 07:58:57 +03:00
2021-10-06 10:04:03 +00:00
2019-02-23 08:02:12 +04:00
2021-10-10 18:09:15 +02:00
2018-10-09 10:21:12 +04:00
2021-08-15 19:50:28 +02:00