Skip to content

Optimize actors physics simulation

Frederic Chardon requested to merge fr3dz10/openmw:schneller into master

Remove dependency between simulation and Actor class. To this end, store all the necessary data inside ActorFrameData. This is faster because:

  • we don't reference any fat Actor* in the hot path
  • we don't take any mutex
  • we don't need atomics

This decoupling is necessary for #6160 as it allow to not tie the simulation to a specific game object class.

Edited by Frederic Chardon

Merge request reports