1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 13:49:56 +00:00
openmw-tes3mp/components/misc
fredzio 3c2504b442 Process movement queue in one or several background threads
Before movement calculation, the main thread prepare a
vector of ActorFrameData, which contains all data necessary to perform
the simulation, and feed it to the solver. At the same time it fetches
the result from the previous background simulation, which in turn is
used by the game mechanics.
Other functions of the physics system (weapon hit for instance)
interrupt the background simulation, with some exceptions described
below.

The number of threads is controlled by the numeric setting

[Physics]
async num threads

In case 'async num threads' > 1 and Bullet doesn't support multiple threads,
1 async thread will be used. 0 means synchronous solver.
Additional settings (will be silently switched off if async num threads = 0)

[Physics]
defer aabb update

Update AABBs of actors and objects in the background thread(s). It is not an especially
costly operation, but it needs exclusive access to the collision world, which blocks
other operations. Since AABB needs to be updated for collision detection, one can queue
them to defer update before start of the movement solver. Extensive tests on as much
as one installation (mine) show no drawback having that switched on.

[Physics]
lineofsight keep inactive cache

Control for how long (how many frames) the line of sight (LOS) request will be kept updated.
When a request for LOS is made for the first time, the background threads are stopped to
service it. From now on, the LOS will be refreshed preemptively as part of the background
routine until it is not required for lineofsight keep inactive cache frames. This mean
that subsequent request will not interrupt the background computation.
2020-10-15 06:41:35 +02:00
..
barrier.hpp Process movement queue in one or several background threads 2020-10-15 06:41:35 +02:00
constants.hpp Get rid of ECLD and dependencies 2020-06-17 13:09:16 +04:00
convert.hpp Add pathgrid to navmesh as off mesh connection 2020-06-12 21:04:02 +02:00
coordinateconverter.hpp Add pathgrid to navmesh as off mesh connection 2020-06-12 21:04:02 +02:00
gcd.hpp Replace boost GCD to the homebrew implementation 2019-03-02 17:32:05 +04:00
guarded.hpp Add detournavigator test for multiple worker threads 2020-04-26 22:00:55 +02:00
helpviewer.cpp Add link to opencs documentation on readthedocs, available through 2020-04-18 20:54:21 +00:00
helpviewer.hpp Add link to opencs documentation on readthedocs, available through 2020-04-18 20:54:21 +00:00
mathutil.hpp Merge branch 'movement_refactoring' into 'master' 2020-08-27 11:54:30 +00:00
messageformatparser.cpp Implement 'g' flag 2018-08-13 20:31:11 +01:00
messageformatparser.hpp Implement 'g' flag 2018-08-13 20:31:11 +01:00
objectpool.hpp Use RAII for object ptr from pool 2020-07-04 01:15:27 +02:00
resourcehelpers.cpp Revert "Don't force DDS file usage (fixes #1392)" 2018-06-04 17:08:09 +02:00
resourcehelpers.hpp Add back resource handling workarounds to the gui code 2015-05-01 18:37:24 +02:00
rng.cpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
rng.hpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
stringops.hpp An attempt to fix the MSVC2017 build 2020-01-09 20:42:06 +04:00
utf8stream.hpp Use utf8 lowercase function for journal index to avoid code duplication 2018-05-24 12:53:06 +04:00
weakcache.hpp Move WeakCache to components/misc 2018-09-28 16:47:47 +04:00