Commit Graph

25950 Commits (05d349e4a760f453a61c5fe6e054971c45a457ca)
 

Author SHA1 Message Date
Bret Curtis ae5302f9cf typo2 4 years ago
Bret Curtis c2c754b1cc typo 4 years ago
jvoisin bd4e259edc Merge branch 'coerity_all' into 'master'
Build __everything__ in coverity

See merge request OpenMW/openmw!1022
4 years ago
jvoisin 4396a2e27a Build __everything__ in coverity 4 years ago
Bret Curtis 6bcb7a86dd update brew; remove need for brew install lua 4 years ago
Bret Curtis 08a9abc46f get openmw building with LuaJIT on macos 4 years ago
psi29a 42e50e487a Merge branch 'cleaning' into 'master'
Improve save cleaning

See merge request OpenMW/openmw!1015
4 years ago
psi29a 22068eed6b Merge branch 'navmesh_cache_without_off_mesh' into 'master'
Do not use off mesh connections as a part of navmesh cache key

See merge request OpenMW/openmw!1016
4 years ago
psi29a 6d08a1d731 Merge branch 'skip_async' into 'master'
Don't put player in the air after going out of tcl

See merge request OpenMW/openmw!1009
4 years ago
psi29a 5e45e2ca5d Merge branch 'resurrection_window' into 'master'
Close windows using Ptrs that are about to be deleted

Closes #4203

See merge request OpenMW/openmw!1020
4 years ago
Evil Eye 087e933326 Close windows using Ptrs that are about to be deleted 4 years ago
elsid beeb882ea8
Do not use off mesh connections as a part of navmesh cache key
To reduce cache size and make it more flexible.

Adding off mesh connections to the navmesh is the last step of navmesh
generation and it's very fast comparing to other steps (microseconds vs
milliseconds). Having less cache size makes get and set operations almost 2x
times faster that also have an order of microseconds. So in total there is
no performance impact.
4 years ago
psi29a f403b464f0 Merge branch 'moved_cell_ref' into 'master'
Skip only a single cell ref after MVRF subrecord

See merge request OpenMW/openmw!1014
4 years ago
elsid 6128fcfc82
Use empty off mesh connections in benchmark
To get proper comparison with the next change removing it from the cache key.
4 years ago
Evil Eye 1e1ebb049e Workaround clang and actually erase from the vector 4 years ago
Evil Eye 86c50ece92 Improve save cleaning 4 years ago
elsid 5c9af1742a
Dump moved cell refs in esmtool 4 years ago
elsid aec4e02417
Ignore only CellRefs with preceding MVRF subrecord
MVRF subrecord means that only single following FRMR subrecord is moved not the
rest of subrecords.
4 years ago
elsid cfdbd0d471
Indicate moved cell refs explicitly
This is less error prone approach than use of MovedCellRef fields.

Also make separate functions for skipping and reading moved cell refs to avoid
passing special flags  logic and null pointers for unused arguments.
4 years ago
elsid f90c4ae22f
Add yaml-like separator between cell refs
To be able to separate records visually.
4 years ago
psi29a cd9fb2adad Merge branch 'dial_me_maybe' into 'master'
Change disposition to work like vanilla

Closes #5100 and #5842

See merge request OpenMW/openmw!599
4 years ago
psi29a 6475082095 Merge branch 'lifetime' into 'master'
Maybe fix #6071

Closes #6071

See merge request OpenMW/openmw!1010
4 years ago
psi29a 223216733d Merge branch 'coverity_fix' into 'master'
Fix some coverity issues

See merge request OpenMW/openmw!1013
4 years ago
psi29a 1da644668f Merge branch 'fix_work_queue' into 'master'
Fix hang on exit (#6145)

Closes #6145

See merge request OpenMW/openmw!1004
4 years ago
jvoisin f9667683e7 Merge branch 'size' into 'master'
Reduce a bit the size of getHT

See merge request OpenMW/openmw!975
4 years ago
Petr Mikheev 8ff8ec4abd Fix coverity issues 4 years ago
psi29a 08d6ec5b84 Merge branch 'add_sol3' into 'master'
Add sol3.2.2/sol/sol.hpp to extern instead of downloading during building

See merge request OpenMW/openmw!1012
4 years ago
Petr Mikheev 4db5fa351d Add sol3.2.2/sol/sol.hpp to extern instead of downloading during building 4 years ago
elsid 153cd9a20c
Avoid redundant search for existing element 4 years ago
elsid d4a2dab9d9
Remove redundant else 4 years ago
elsid eece47f70e
Avoid copying osg::ref_ptr when adding or removing item from work queue
Copy constructor does refcounting, and move constructor doesn't.
4 years ago
elsid b8fcd6d3ba
Manage work item lifetime on the client side
Instead of explicit work queue stop before any possibly used engine manager
is destructed. Based on an assumption that any engine manager can be destructed
independently from the work queue destruction. This model is already used in
CellPreloader that conflicts with explicit work queue stop.

After the work queue is requested to be stopped, any client waiting for a not
started work item to be done will wait forever because the work item is dropped
from the queue. Therefore either clients should not wait for own work items to
be completed in destructor or the work queue should not drop items before
clients are destructed. Other approaches are possible but are not considered
due to increasing complexity.

CellPreloader already tries to wait for all created work items to be done so
keep it that way and extend the model to AsyncScreenCaptureOperation and Scene.
Additionally abort all scheduled work items when owner is destructed. This
prevents a long exit when multiple screenshots are scheduled right before
exiting the game.
4 years ago
psi29a 5287c9627c Merge branch 'fix_debugbatch_colors' into 'master'
Fix black objects in object paging debug view

See merge request OpenMW/openmw!1011
4 years ago
glassmancody.info 389b830046 fix black objects with OP batch debug due to unitialized uniform 4 years ago
jvoisin 5aaac8e47e Reduce a bit the size of getHT
Factoring common code parts outside of a template
is apparently a good practise to reduce code duplication
(and the size of openmw by around 0.5%),
and should improve a bit the performances,
since the whole `std::to_string` * 2 + string concatenation
dance results in quite a lot of code, preventing inlining on my machine.
4 years ago
psi29a ba3d66503f Merge branch 'ci_tests_debug' into 'master'
Add CI jobs to build tests in debug mode

See merge request OpenMW/openmw!1006
4 years ago
fredzio 1650dabed8 Assign the return value of weak_ptr::lock() to a variable, so that the
shared object lifetime is properly extended. Otherwise there is a
possibility that the Actor gets destroyed during call to unstuck().
4 years ago
fredzio 643a64cb2f Change some settings for async physics:
- default to 1 thread
- default to always use defered aabb update, remove option
- always keep a cache of LOS request for at least the current frame.
This decreases number of raycast, especially when a lot of actors are
involved and "NPCs avoid collisions" is on
4 years ago
fredzio 6ad2cf8e4f Skip simulation result after calling Actor::updatePosition(). Otherwise
when going out of tcl the player would go back to previous position for
one frame.
4 years ago
elsid 73639a93b6
Avoid CTAD to fix macOS build
../../../apps/openmw/engine.cpp:706:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
                    ? std::function(ScheduleNonDialogMessageBox {})
                      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::ScheduleNonDialogMessageBox'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined
                                               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate function template not viable: requires 0 arguments, but 1 was provided
../../../apps/openmw/engine.cpp:707:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
                    : std::function(IgnoreString {})
                      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::IgnoreString'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined
                                               ^
4 years ago
elsid e1c525914c
Add CI jobs to build tests in debug mode 4 years ago
elsid 5357c67c3e Merge branch 'fix_6151' into 'master'
Disable special processing of Lua errors in debug builds. Fixes #6151.

Closes #6151

See merge request OpenMW/openmw!1008
4 years ago
Petr Mikheev 84721fb58a Disable special processing of Lua errors in debug builds. Fixes #6151. 4 years ago
psi29a 5688b7b4d8 Merge branch 'FixLODIssueWithObjectPaging' into 'master'
LOD issue with object paging

See merge request OpenMW/openmw!1007
4 years ago
Cédric Mocquillon 269cd31059 Use same world coordinates to compute distances 4 years ago
psi29a 83af0402b8 Merge branch 'fix_sol_build' into 'master'
Add missing include from sol/sol.hpp

See merge request OpenMW/openmw!1003
4 years ago
elsid 36ec877a8e
Add missing include from sol/sol.hpp 4 years ago
psi29a 61f3c528d2 Merge branch 'lua' into 'master'
Lua

Closes #5990

See merge request OpenMW/openmw!430
4 years ago
Petr Mikheev c2280ada1d OpenMW Lua, API_VERSION=0 4 years ago
Petr Mikheev 85c441ec9a Refactoring and minor fixes related to active/inactive object state 4 years ago