mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:53:52 +00:00
a2d596dbc7
It is expensive operation to generate new osg::Group for updated navmesh tile which noticeably slows down main thread primarily because of SceneManager::recreateShaders call. Move it to the preload work queue that is used by RenderingManager. Leave to main thread only manipulations on the root node. Also move deallocation of no more needed data to the work queue. It's also quite expensive operation because SceneManager::recreateShaders allocates a new state set for each osg::Geometry. Deallocating them takes time. Avoid creating another work item if there is existing one that is not started yet. Make sure results are accepted in the proper serialized order by selecting completed work item with maximum {id, version}. |
||
---|---|---|
.. | ||
benchmarks | ||
bsatool | ||
bulletobjecttool | ||
esmtool | ||
essimporter | ||
launcher | ||
mwiniimporter | ||
navmeshtool | ||
niftest | ||
opencs | ||
openmw | ||
openmw_test_suite | ||
wizard | ||
doc.hpp |