1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-06 15:10:54 +00:00
Commit graph

27448 commits

Author SHA1 Message Date
elsid
05b54cbfb8
Cull navmesh objects by scene bounds
If object is too big iteration over all tiles covering it can take too much
time. Limit bounds to a square around a player position to cover only tiles
that will be present in navmesh based on max tiles number option.

Each object is associated with a set of tiles its present in. Culling can
reduce this set but it has to be update when bounds change position. Do this
in TileCachedRecastMeshManager::setBounds updating the set and adding/removing
objects to the corresponding CachedRecastMeshManagers.
2022-02-03 22:09:37 +01:00
elsid
563f3f87dd
Reduce critical sections size 2022-02-03 21:44:37 +01:00
elsid
a5b078e9a7
Allow to represent empty range with TilesPositionsRange 2022-02-03 21:43:56 +01:00
elsid
1b2954f2db
Remove unused z coordinate 2022-02-03 21:43:53 +01:00
elsid
1a52a2a029
Clamp tile position 2022-02-03 02:44:04 +01:00
elsid
783411fa1f
Use new player position when updating navigator on cell loading 2022-02-03 02:44:04 +01:00
elsid
542717394a
Remove objects, water and heightfields when no longer required 2022-02-03 02:43:35 +01:00
psi29a
bb6b031afd Merge branch 'fix_simulation_crash' into 'master'
Fix use after free and possible deadlock on exit (#6577)

Closes #6577

See merge request OpenMW/openmw!1601
2022-02-02 21:06:18 +00:00
psi29a
cf8d49bb9a Merge branch 'lua_settings_ui' into 'master'
Lua settings UI

Closes #6454

See merge request OpenMW/openmw!1595
2022-02-02 21:04:18 +00:00
psi29a
fb99ed78d5 Merge branch 'absoluteprecision' into 'master'
Fix compilation errors with double precision bound types (bug #6579)

Closes #6579

See merge request OpenMW/openmw!1619
2022-02-02 21:03:29 +00:00
psi29a
0100f682b9 Merge branch 'fix_docs' into 'master'
Fix util.color docs

See merge request OpenMW/openmw!1622
2022-02-02 20:30:28 +00:00
uramer
2945f6238e Fix util.color docs 2022-02-02 20:30:28 +00:00
uramer
946b8b804c MR feedback 2022-02-02 16:42:04 +01:00
Alexei Dobrohotov
142b6fdf2f Fix double precision bound issues in std::max/std::clamp 2022-02-02 16:57:59 +03:00
Alexei Dobrohotov
aaea2bc0f6 Implement transformBoundingSphere for both sphere types (bug #6579) 2022-02-02 16:51:35 +03:00
uramer
406e950052 Merge branch 'lua_activate' into 'master'
Lua command `object:activateBy(actor)` and handler `onActivate`

See merge request OpenMW/openmw!1618
2022-02-01 23:42:56 +00:00
Petr Mikheev
47c37e5849 Lua command object:activateBy(actor) and handler onActivate 2022-02-01 23:42:56 +00:00
uramer
f873703bdb Merge branch 'lua_aux_util' into 'master'
Add range to "aux_util.findNearestTo".

See merge request OpenMW/openmw!1620
2022-02-01 22:37:16 +00:00
uramer
f68c0c41a9 Prioritize setting pages with hits in the name when searching 2022-02-01 23:06:53 +01:00
uramer
2185fd29c5 Document ui.registerSettingsPage 2022-02-01 19:50:03 +01:00
uramer
ef1e72dc17 Revert from settings description to searchHints 2022-02-01 19:50:03 +01:00
uramer
7f796d148e Clean up 2022-02-01 19:50:03 +01:00
uramer
01d65a14f1 Implement more advanced search, sort script setting pages by alphabet and filter match quality 2022-02-01 19:50:03 +01:00
uramer
67641dcdb7 Fix compile errors 2022-02-01 19:50:03 +01:00
uramer
f07f05ddd3 Add Container widget type, use it to make Adapter code less hacky 2022-02-01 19:50:03 +01:00
uramer
086a7d9bc5 Wrap Lua settings widgets into an Adapter widget 2022-02-01 19:50:03 +01:00
uramer
db9e734a6a Fix warning 2022-02-01 19:50:02 +01:00
uramer
1455aa3e02 Allow changing script settings pages after registering them 2022-02-01 19:50:02 +01:00
uramer
5f7ab49880 Implement script setting pages' descriptions 2022-02-01 19:50:02 +01:00
uramer
a005f25c4b Use page terminology for script settings 2022-02-01 19:50:02 +01:00
uramer
e78b8402fa Fix warnings 2022-02-01 19:50:02 +01:00
uramer
a972a54ea9 Allow changing element root widget type, prevent use after free in script settings 2022-02-01 19:50:02 +01:00
uramer
64df4f54c6 Add scrolling to the script settings view 2022-02-01 19:50:02 +01:00
uramer
fba82eb1a7 Script settings tab 2022-02-01 19:50:02 +01:00
Petr Mikheev
03f1b1a082 Merge branch 'controls_yaw_pitch' into 'master'
Implement Yaw, Pitch and Use (attack / cast spell) in Lua self.controls

See merge request OpenMW/openmw!1617
2022-02-01 18:47:20 +00:00
uramer
c31dedb89c Implement Yaw, Pitch and Use (attack / cast spell) in Lua self.controls 2022-02-01 18:47:20 +00:00
Petr Mikheev
899199c8ed Add range to "aux_util.findNearestTo". 2022-02-01 18:44:14 +01:00
psi29a
93b3b9df90 Merge branch 'revert_navmesh_cull' into 'master'
Revert "Cull navmesh objects by scene bounds" (#6580)

See merge request OpenMW/openmw!1613
2022-01-31 10:12:28 +00:00
psi29a
6d152cc728 Merge branch 'android_cmake_ccache_fix' into 'master'
Have Android CI also use latest ccache to fix issues with cmake.

See merge request OpenMW/openmw!1614
2022-01-31 07:57:08 +00:00
psi29a
010dc90d42 Have Android CI also use latest ccache to fix issues with cmake. 2022-01-31 07:57:08 +00:00
elsid
2bd99867fe Merge branch 'benchmark' into 'master'
cmake: only download benchmarks if we build with it

See merge request OpenMW/openmw!1616
2022-01-31 00:23:03 +00:00
Timo Gurr
8512f7cb4c cmake: only download benchmarks if we build with it
Since 70623d0b23 CMake tries to download
benchmarks even if we pass -DBUILD_BENCHMARKS:BOOL=FALSE.
2022-01-31 00:27:21 +01:00
psi29a
d4f46ed156 Merge branch 'cmake-share2' into 'master'
cmake: for now do not use CMAKE_INSTALL_DATAROOTDIR for GLOBAL_DATA_PATH

See merge request OpenMW/openmw!1612
2022-01-30 21:39:28 +00:00
Timo Gurr
7e346fbbdd cmake: for now do not use CMAKE_INSTALL_DATAROOTDIR for GLOBAL_DATA_PATH 2022-01-30 21:39:28 +00:00
elsid
ae821738c9
Revert "Add #5858 to the changelog"
This reverts commit 670cc97947.
2022-01-30 22:09:37 +01:00
elsid
7ea5aa250b
Revert "Cull navmesh objects by scene bounds"
This reverts commit b0ef20c303.
2022-01-30 21:43:23 +01:00
Cody Glassman
5b641a61d2 Merge branch 'ptmikheev-master-patch-38354' into 'master'
Add better explanation of the `onLoad` engine handler.

See merge request OpenMW/openmw!1599
2022-01-30 20:27:37 +00:00
Petr Mikheev
ec4adcc5a2 Add better explanation of the onLoad engine handler. 2022-01-30 20:27:37 +00:00
jvoisin
d291b17c68 Merge branch 'refactor/script-cleanup' into 'master'
Use pop_back to shrink the stack

See merge request OpenMW/openmw!1597
2022-01-30 18:50:01 +00:00
jvoisin
4cd6d2dacf Merge branch 'rework_fixed_string' into 'master'
Rework fixed string

See merge request OpenMW/openmw!1596
2022-01-30 18:47:06 +00:00