1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-03 13:11:35 +00:00
openmw/apps
fredzio ec871e6bf7 Use shared_ptr instead of weak_ptr for actors handle inside the
simulation

The purpose of weak_ptr is to avoid performing the simulation on deleted
Actor by promoting it to a shared_ptr via a lock() call. This clutter
the code with a lot of branches, whereas the overwhelmingly common case is for the call to succeed.
Since the simulation is decoupled from the engine state, we can use a shared_ptr instead of a weak_ptr.
This allow us to ignore (ie not handle) the rarer case where the actor is delete from the scene. This means that the simulation
will run for one frame more than before for each actor, whereas the rest of the engine
will be ignorant of this.
2021-08-15 16:21:16 +02:00
..
benchmarks Store heightfields as array of heights instead of triangles 2021-07-26 00:22:21 +02:00
bsatool Add file to BSA 2021-04-08 18:08:28 +02:00
esmtool Add a std::noboolalpha to a std::boolalpha 2021-07-21 14:40:54 +02:00
essimporter Merge branch 'auto_in_most_apps' into 'master' 2021-07-25 21:23:26 +00:00
launcher fix CI artifacts, missing header 2021-07-25 20:49:17 -07:00
mwiniimporter Using auto keyword in most apps 2021-05-18 19:20:59 -05:00
niftest Using auto keyword in most apps 2021-05-18 19:20:59 -05:00
opencs Merge branch 'OpenCS-enforce-str-length' into 'master' 2021-08-06 21:08:09 +00:00
openmw Use shared_ptr instead of weak_ptr for actors handle inside the 2021-08-15 16:21:16 +02:00
openmw_test_suite Merge branch 'navmesh_reduce_lock_wait' into 'master' 2021-08-03 23:05:39 +00:00
wizard Using override keyword in most apps 2021-05-18 19:42:24 -05:00
doc.hpp