1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 17:49:55 +00:00
openmw-tes3mp/components
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
..
bsa Don't save space in compressed BSA hash generation 2020-03-10 23:47:39 +03:00
bullethelpers Filter recast mesh triangles by global bounding box 2019-11-30 13:19:27 +01:00
compiler Get rid of warning: dynamic exception specifications are deprecated 2020-10-10 12:12:55 +02:00
config Use QMultiMap instead of QMap 2020-06-24 15:13:56 +04:00
contentselector Add members in AdvancedPage class to avoid memory leak when the list of cells names is updated as we recreated a completer at each notification event 2020-07-25 13:58:42 +00:00
crashcatcher Add env variable to enable/disable crash catcher 2020-04-25 15:42:06 +02:00
debug Disable OpenGL Debug stuff when SDL doesn't provide the necessary definitions 2020-09-21 00:49:09 +01:00
detournavigator Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
esm Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
esmterrain Replace OpenThreads by std types 2020-06-25 22:16:09 +02:00
fallback Revert to 0.45.0 comments-in-the-middle settings behavior 2019-10-26 10:55:10 +03:00
files Use all-lowercase names for windows API headers 2020-05-24 16:49:20 +02:00
fontloader Catch MyGUI exceptions in the FontLoader destructor 2020-06-18 15:13:02 +04:00
interpreter Give new opcodes to old functions made custom 2020-05-23 11:57:15 +03:00
loadinglistener Fix C5204 warnings by adding default virtual destructors 2020-03-26 14:49:12 +04:00
misc Process movement queue in one or several background threads 2020-10-15 06:41:35 +02:00
myguiplatform Add final modifier to fix warnings 2020-02-18 10:36:08 -08:00
nif Fix NiTriStripsData loading 2020-10-09 19:37:54 +03:00
nifbullet Try to resolve CI concerns 2020-05-14 10:00:33 +03:00
nifosg Revert "Merge branch 'skinning' into 'master'" 2020-10-08 23:24:28 +00:00
process Remove redundant includes 2019-02-23 08:02:12 +04:00
resource Discard the alpha channel of 16-bit TGAs, just like Morrowind 2020-09-12 00:20:44 +01:00
sceneutil Revert "Merge branch 'skinning' into 'master'" 2020-10-08 23:24:28 +00:00
sdlutil Merge branch '4771-and-4631' into 'master' 2020-09-20 12:35:26 +00:00
settings Support vectors in settings.cfg 2020-07-24 21:47:49 +02:00
shader Correctly resetting line numbering during shader processing. 2020-10-03 14:22:34 +02:00
terrain Replace OpenThreads by std types 2020-06-25 22:16:09 +02:00
to_utf8 Remove redundant includes 2019-02-23 08:02:12 +04:00
translation Replace all NULLs to nullptr 2018-10-09 10:21:12 +04:00
version Allow getting available version information even when clone is shallow 2017-03-07 21:53:49 +01:00
vfs make use of std::make_unique to test that MSVC2015 can handle that 2019-04-10 11:09:44 +02:00
widgets Move font loading to the FontLoader 2020-05-28 23:18:31 +04:00
CMakeLists.txt Convert components to an OBJECT library. It saves space in the object 2020-10-13 14:10:52 +02:00
doc.hpp second set of additional doxygen comments 2010-09-25 20:15:05 +02:00