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-08-04 17:49:57 -07:00
2021-04-13 11:09:49 -07:00
2021-04-13 11:09:49 -07:00
2020-06-13 00:22:28 +02:00
2021-08-04 17:49:57 -07:00
2021-10-10 18:09:15 +02:00
2021-10-10 18:09:15 +02:00
2021-07-26 14:01:02 +02:00
2021-08-04 17:49:57 -07:00
2021-08-04 17:49:57 -07:00
2021-09-12 09:21:10 +00:00
2021-10-09 11:14:22 +02:00
2021-10-09 11:14:22 +02:00
2021-08-04 17:49:57 -07:00
2021-08-04 17:49:57 -07:00