1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-31 11:06:43 +00:00
openmw-tes3mp/apps
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
..
bsatool Use more C++11 in tools code 2020-06-10 10:30:37 +04:00
esmtool supress -> suppress 2020-06-27 01:20:57 +02:00
essimporter Use overrides, when needed 2020-06-10 12:58:15 +04:00
launcher Add "smooth movement" and "NPCs avoid collisions" settings to openmw-launcher and to the docs; update CHANGELOG.md. 2020-09-22 22:50:44 +02:00
mwiniimporter Support eight possible blood types (feature #4958) 2019-04-14 18:48:31 +03:00
niftest Catch possible boost::bad_any_cast exception 2019-03-19 09:11:14 +04:00
opencs Install openmw-cs.cfg on single-config generators and from the right directory on multi-config 2020-09-23 20:00:32 +02:00
openmw Process movement queue in one or several background threads 2020-10-15 06:41:35 +02:00
openmw_test_suite Merge pull request #3008 from akortunov/strings 2020-10-13 17:37:48 +02:00
wizard Avoid reverse iteration on QHash 2020-06-23 13:33:38 +04:00
doc.hpp