Commit Graph

29544 Commits (88ec8a95231341e7962b85716510d414e9f0c424)
 

Author SHA1 Message Date
psi29a dcbe59b712 Merge branch 'animchangelog' into 'master'
Update changelog

See merge request OpenMW/openmw!2375
2 years ago
Alexei Kotov a285c62e54 Update changelog 2 years ago
psi29a 912a4d69ee Merge branch 'reuse_simulations_buffer' into 'master'
Reuse physics simulations buffer (#6588)

Closes #6588

See merge request OpenMW/openmw!2374
2 years ago
psi29a a5664d7ba9 Merge branch 'reserve_utf8_stream' into 'master'
Reserve the output buffer in lowerCaseUtf8

See merge request OpenMW/openmw!2370
2 years ago
psi29a c4deacbff8 Merge branch 'navigator_fixes' into 'master'
Navigator fixes

See merge request OpenMW/openmw!2373
2 years ago
elsid 277211c5b4
Reuse physics simulations buffer
To avoid redundant allocations.

Use 2 buffers to make sure there is no overlap between main and the background
threads.
2 years ago
florent.teppe e961ac6f7c function doesn't need to return int 2 years ago
florent.teppe b1d5d604be various fixes
fixed naming convention
replaced std::string by string_view when possible
removed unused function and member varaible
replaced type::value by type_v
set default destructor in cpp
function getTypeIndex => getnextindex
2 years ago
elsid 180d609e0d
Check "wait until min distance to player" only for requiredTilesPresent wait condition
allJobsDone should wait even if "wait until min distance to player" is 0.
2 years ago
elsid 955db8f825
Call Navigator::setWorldspace once per changing cell 2 years ago
elsid 98ddc31902
Fix calculating min distance to nearest absent tile
Tile can be present in either mPushed (waiting in a queue), mProcessingTiles (
being processed or waiting in db queue), mPresentTiles (added to navmesh). It's
not enough to walk over mPushed tiles to find all not present. Need also to
check mProcessingTiles.

Otherwise if all tiles are in mProcessingTiles only
waitUntilJobsDoneForNotPresentTiles may return too early because there are none
in mPushed and therefore none tiles are considered to be absent on navmesh which
is not true.
2 years ago
elsid de80b86cc1
Use proper type to cast enum value 2 years ago
elsid 204ab6fea3
Use version instead of generation and revision for recast mesh 2 years ago
elsid 914edd1194
Make frequently called oneliners inline 2 years ago
elsid d1a294664e
Do not try to update tile to post
changedTiles contains unique set of positions and tilesToPost is empty initially
therefore it's not possible to add the same position twice.
2 years ago
psi29a c4d357df0f Merge branch 'blindness' into 'master'
Derive screen brightness from the blind modifier

Closes #6987

See merge request OpenMW/openmw!2372
2 years ago
florent.teppe 7bc506ff86 linux copmile 2 years ago
florent.teppe 564c5d6690 fixed naming convention issue 2 years ago
florent.teppe e23d9c11a8 moved a bit of code back in the header to avoid many template specialization 2 years ago
florent.teppe 0dd529ab1d With the records include removed from store.hpp, need to include the relevant files accross the codebase.Lots of touched files, but very little done 2 years ago
florent.teppe 445d91d85d adds missing include 2 years ago
Evil Eye 6117b10cfa Derive screen brightness from the blind modifier 2 years ago
Evil Eye 489c7a10b6 Implement PCVisionBonus functions 2 years ago
psi29a 8e7cee5861 Merge branch 'shut_it' into 'master'
Make the Sound magic effect make noise

Closes #6986

See merge request OpenMW/openmw!2369
2 years ago
psi29a 9472998bad Merge branch 'ori' into 'master'
Implement the full version of the ori command

See merge request OpenMW/openmw!2368
2 years ago
psi29a 8b19424cf6 Merge branch 'navigator_changed_tiles' into 'master'
Store changed tiles in TileCachedRecastMeshManager

See merge request OpenMW/openmw!2367
2 years ago
jvoisin 9f62f0c292 Reserve the output buffer in lowerCaseUtf8
Since lowercasing an utf8 string shouldn't change its size very much,
it does make sense to reserve the output buffer, to reduce
memory allocations.
2 years ago
florent.teppe 4bb9a4166d The tuple types declaration is back in the header, but there is no need for implementation details to be known for any of the types 2 years ago
Evil Eye 9484d8ce51 Make the Sound magic effect make noise 2 years ago
florent.teppe 57df51b4a6 fixed made by @ZehMatt in 6abb96250f and cdcf1393fc 2 years ago
florent.teppe 9092c32f2e fixed incompatibilities caused bu merge 2 years ago
florent.teppe 3cbd0e0762 Fixed naming convention 2 years ago
florent.teppe 9e40550a4a improved readability of esm3Recname and esm4Recname 2 years ago
florent.teppe 1ed22a298d fix compile 2 years ago
florent.teppe 7bd7105345 code cleanup 2 years ago
florent.teppe 33ea66b86d Type index type error fixed 2 years ago
florent.teppe 85a9edf2ee removes useless make_tuple, and changes type of typeIndex to size_t 2 years ago
florent.teppe 31330c9abc oups 2 years ago
florent.teppe cbb9b65286 linux compile 2 years ago
florent.teppe ee06cccbe1 gets rid of the macros, we use a tuple instead, with a mechanism to assign an index to each type.
so the tuple is only defined in the cpp, but we can still have template functions in the header that can ge tthe index with the type
2 years ago
florent.teppe 16482243fa rename StoreBase =>DynamicStore, and create new class Storebase
all stores inherit from base class StoreBase.Storebase is just an empty interface class
2 years ago
florent.teppe 0d84b32d46 Rename member to be clearer and more generic 2 years ago
florent.teppe 0d7bd19119 removes recname type, we use what is already included in ESM types 2 years ago
florent.teppe bff4096652 Removed macro that didn't serve any real purpose
Renamed member that didn't respect the naming convention
2 years ago
florent.teppe 78ba3f91f3 Binds at compile time esm struct and RecNameInts to automatically populate mESM3RecordToStore
fewer possible mistakes now, one macro takes all the information to create all the stores and maps from RecName to Store
2 years ago
florent.teppe a7207a9220 Linux compilation 2 years ago
florent.teppe 59ebee634b Very convincing experiment, by associatingg a compiletime index to the esm record, it becomes possible to automate the loop that creates them
it will also be possible to associate AT COMPILETIME the RecNameInt to the esm type, which in the same manner will automatically populate mESM3RecordToStore
2 years ago
florent.teppe 252550d86f Added records for ESM4s the throw std:: logic error ensures at compile time that there is no collision
static_assert doesn't work because the function can be called at run time
2 years ago
florent.teppe 0967c11128 mids and mStaticIds moved to mStoreImp
renamed recordid to storeid
2 years ago
florent.teppe 87224e3007 Fixes a bug with es3overrideRecord, esm3InsertStatic and esm3StoreInsert
This also comes with a change to the mapping from esm3 record name to Store to be more direct with a pointer
and the creation of a map from store pointer to esm3 record type
2 years ago