Commit Graph

6358 Commits (84f8a6848a8b05502d7618ca7af8cca74f2c3bae)

Author SHA1 Message Date
Evil Eye 2222b47e3d Make Settings::Manager::getString return a reference 2 years ago
elsid c15848932b
Separate reading navigator stats and reporting 2 years ago
elsid e9be8b5efe
Show stats for writing and reading navmesh db queue jobs 2 years ago
AnyOldName3 1d177e2d71 Merge branch 'light_fix' into 'master'
Fix incorrect scene lighting #6952

See merge request OpenMW/openmw!2335
2 years ago
Evil Eye 02bbb0be45 Improve format workaround and add unit tests 2 years ago
psi29a e46be1c220 Merge branch 'rm_get_poly_height_status' into 'master'
Do not check getPolyHeight status (#6964)

Closes #6964

See merge request OpenMW/openmw!2334
2 years ago
psi29a c260a0d4c2 Merge branch 'string_me_along' into 'master'
Yet another string_view MR

See merge request OpenMW/openmw!2333
2 years ago
elsid 948e2f5db9
Do not use collision shapes with visual only collision to generate navmesh
These collision shapes are not used for actors movement physics simulation.
2 years ago
glassmancody.info 1f2d9f2280 don't recycle statesets for light cullcallback for now 2 years ago
elsid ab1ddc690e
Do not check getPolyHeight status
It may fail in some cases depending on a platform without obvious reason.
2 years ago
Evil Eye 4e2e5ad002 Revert format change and ensure string_view args are null-terminated 2 years ago
Evil Eye 1d21330fcc Return string_view from getGameSettingString 2 years ago
jvoisin e0dbe976bc Merge branch 'qt_signalslot_syntax_update' into 'master'
Migrate to functor-based Qt signal-slot connection syntax

Closes #6948

See merge request OpenMW/openmw!2332
2 years ago
Evil Eye 0cded25033 Remove various string copies 2 years ago
Evil Eye 0df45a90b3 Use string_view in the remaining Class methods and push string_views closer to the MyGUI boundary 2 years ago
mpeco 1868534071 functor-based Qt signal-slot syntax components 2 years ago
psi29a 1f5277349c Merge branch 'span' into 'master'
Replace Misc::Span by std::span

See merge request OpenMW/openmw!2324
2 years ago
psi29a 9c24d6b390 Merge branch 'ci_starts_with' into 'master'
Replace ciCompareLen with ciStartsWith where possible

See merge request OpenMW/openmw!2325
2 years ago
Evil Eye 150d1840d6 Use more string_view and const string& 2 years ago
elsid 5dc612aa54
Replace ciCompareLen with ciStartsWith where possible
`ciCompareLen(a, b, b.size()) == 0` expression is an equivalent of checking for
equality of `a` prefix with size `b.size()` with `b`.

`ciCompareLen(a, b, a.size()) == 0` is also the same thing but `a` is a prefix
`b` should start with.
2 years ago
elsid e4a254deb7
Replace Misc::Span by std::span 2 years ago
psi29a 36fbef1048 Merge branch 'apple-silicon-arm-build' into 'master'
Get build working on Apple Silicon

See merge request OpenMW/openmw!2286
2 years ago
psi29a 2a2268ea8b Merge branch 'optimize_navigator_update' into 'master'
Optimize navigator per frame update

See merge request OpenMW/openmw!2308
2 years ago
psi29a f36e13444e Merge branch 'font_loading' into 'master'
Cleanup fonts loading

See merge request OpenMW/openmw!2309
2 years ago
psi29a aa8eba239a Merge branch 'animation_view' into 'master'
Use string_view in animation code

See merge request OpenMW/openmw!2321
2 years ago
unknown 206711876d Address feedback 2 years ago
unknown 827a2f0b77 Use string_view in animation code 2 years ago
Mads Buvik Sandvei 70e1efdd47 omw_GetWorldPosFromUV() should use omw_GetDepth() 2 years ago
Andrei Kortunov 9e1ab590f1 Cleanup fonts loading 2 years ago
psi29a 4078f19c74 Merge branch 'SHADER_HOT_RELOAD' into 'master'
Shaders: Hot reload, togglable by lua debug command

See merge request OpenMW/openmw!2238
2 years ago
florent.teppe 25c1f0ca16 Renamed variable to fix case issue 2 years ago
elsid aea4614240
Fix clang tidy warning 2 years ago
elsid 8147d49178
Remove redundant lock
mGeneration is const and mRevision is changed only from the same thread.
2 years ago
elsid 2885885331
Increase mutex scope in TileCachedRecastMeshManager functions
Which are called from the main thread.
2 years ago
elsid e1bed86d7e
Do single navigator update per frame
Primarily for crossing cell border case. Each Navigator::update call has a cost.
Doing it multiple times per frame increased frame duration on cell loading.

Call Navigator::wait only when cell has changed but do not use
Scene::hasCellChanged because it doesn't always indicates it.
2 years ago
elsid 8125d51a0f
Use std::unique_ptr to implement ScopedLoad
This gives correct implementation of move constructor and assignment operators.
2 years ago
Andrei Kortunov c3d3f3140b Allow to change font settings in the launcher 2 years ago
psi29a bf40f9b287 Merge branch 'name_view' into 'master'
Make Class::getName return string_view

See merge request OpenMW/openmw!2289
2 years ago
Andrew Dunn 808a2e587a Merge commit '5ee4ce1232b0f334f29dd702f811c58dccf5c00d' into apple-silicon-arm-build 2 years ago
psi29a 5ee4ce1232 Merge branch 'nipixeldata' into 'master'
Support more NiPixelData formats (feature #6945)

Closes #6945

See merge request OpenMW/openmw!2290
2 years ago
Alexei Kotov edbd05a3f7 Support more NiPixelData formats (feature #6945) 2 years ago
Evil Eye 4ff12d8945 Make Class::getName return string_view 2 years ago
elsid cc8c7002ea
Cleanup components includes 2 years ago
Andrew Dunn 1d7d3d5765 Get build working on Apple Silicon
Will validate issues with Intel OSX later
2 years ago
psi29a b382e92953 Merge branch 'please_dont_copy_my_nfts' into 'master'
Prevent various values from being copied

See merge request OpenMW/openmw!2267
2 years ago
elsid b1fb42a28c
Cleanup detournavigator includes 2 years ago
psi29a f42ab6a3e7 Merge branch 'coverity' into 'master'
Do not copy data when it is not needed

See merge request OpenMW/openmw!2277
2 years ago
Andrei Kortunov e3ad30a517 Do not copy data when it is not needed 2 years ago
Matt e6868fd211 Allow constexpr hashing 2 years ago
Evil Eye de8d9b8db3 Use Fowler-Noll-Vo hash instead of std::hash 2 years ago
Evil Eye eaa108d25d Return string_view from SoundId methods 2 years ago
florent.teppe 166717d601 Makes sure threads are only stopped once ,and that they will be re-started 2 years ago
Evil Eye 51938f9ef7 Use string_view in Interpreter::Context 2 years ago
florent.teppe 16a4b5716b adds missing include 2 years ago
florent.teppe b14cc673bc adds missing decleration 2 years ago
florent.teppe decfbc5387 Fix threading issues 2 years ago
psi29a 18dbf722eb Merge branch 'store_view' into 'master'
Allow string_view lookups in MWWorld::Store

See merge request OpenMW/openmw!2010
2 years ago
psi29a b551e69b6f #5534 remove OSG 3.4 support and require at least 3.6.5 support 2 years ago
Evil Eye de51525c76 Allow string_view lookups in MWWorld::Store and get some use out of that 2 years ago
psi29a bb9884c024 Merge branch 'split_stringops' into 'master'
Split components/misc/stringops.hpp into multiple headers

See merge request OpenMW/openmw!2233
2 years ago
florent teppe baadc06e98 Merge branch 'master' into 'SHADER_HOT_RELOAD'
# Conflicts:
#   apps/openmw/mwrender/postprocessor.hpp
2 years ago
glassmancody.info c513ec7824 null check 2 years ago
glassmancody.info 2cea4f3172 stop excessive allocations with lightmanager callback 2 years ago
florent.teppe 603b30e117 Added some variable names to make it clearer what their function was
avoid having lost of ->first and ->second that aren't meaningfull
2 years ago
cody glassman ac4b29be08 cleanup default shaders and remove confusing main shader 2 years ago
florent.teppe 3ab0a99154 Hot reload done only once every 200 ms, no point in beeing faster
it may also help with bugs where the file is still locked and can't be opened
2 years ago
florent.teppe cc9d436413 includes now work when the same shader has different defines 2 years ago
florent.teppe 7b78bf4b66 Fix files with different defines weren't added to the hot reload manager 2 years ago
florent.teppe a1c8dc9d45 C++17 compat ? 2 years ago
florent.teppe cdd95f7889 replaced empty function body by default 2 years ago
florent.teppe 9a475b0c97 fixed blank lines and missing breaks 2 years ago
florent.teppe b6d7293a12 Removed weird lines that I thought were necessary to please the compiler 2 years ago
florent.teppe 68d0698924 Fixed cyclical included check 2 years ago
florent.teppe aa51d6de2a Missing chrono include ? 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago
elsid da0a1ac9ba
Do compile time checks in compile time instead of tests 2 years ago
florent.teppe f78fa989ee fixed include, cleaned comments and indentation 2 years ago
florent.teppe 31d412527d forgot memory include 2 years ago
florent.teppe 6b38d62223 Added lua bindings to toggle hot reload (disabled by default) or to trigger a reload 2 years ago
florent.teppe 4e7c1c5bef Added break when the operation failed 2 years ago
florent.teppe 8d194a1601 Shaders: rudimentary hot reloader on shaders
every frame we poll the files and check if they are older or newer than the last test, if they are newer we find all the shader that included that file and update them
2 years ago
Alexei Kotov 014de72644 Use NiParticleSystemController's color for the initial particle color 2 years ago
elsid ba69146ced
Use std::string_view to avoid redundant std::string construction 2 years ago
glassmancody.info 651916694c use correct indexed color mask 2 years ago
psi29a 454684bad3 Merge branch 'custom_actor_collision_shape_type' into 'master'
Support cylinder and rotating box collision shape types for actors (#6138)

Closes #6138

See merge request OpenMW/openmw!2043
2 years ago
psi29a 04fcfcc79d Merge branch 'master' into 'bigpeepeventsenergy'
# Conflicts:
#   components/sdlutil/sdlinputwrapper.cpp
2 years ago
Alexei Kotov f9fdcfe4a7 Prevent mouse movement events from being queued in loading screens (bug #4374) 2 years ago
Alexei Kotov bb2fa1cbfa Break SDL_PeepEvents loop on error (bug #6890) 2 years ago
psi29a 9ba3ab2be9 Merge branch 'post_fog' into 'master'
[Postprocessing]  API to work with fog

See merge request OpenMW/openmw!2212
2 years ago
Andrei Kortunov 5bfca57835 Add a way to check if water is enabled in post processing shaders 2 years ago
Andrei Kortunov 888f4d2ac1 Add a post processing API to work with fog 2 years ago
elsid 8b8e4f78b6
Support cylinder and rotating box collision shape types for actors
Cylinder collision shape should give the best consistency between physics
simulation and pathfinding. Rotating box is already used by some actors, so
add it to have the same collision shape type for all actors.
2 years ago
psi29a c54822acf9 Merge branch 'locale_menu' into 'master'
Add a way to configure locale settings in-game

See merge request OpenMW/openmw!2179
2 years ago
elsid 8cecc55d64
Fix inserting texture to map
Avoid using invalidated iterator after erase call.

Use insert_or_assing instead of operator[] because OSGTexture doesn't have a
default constructor.
2 years ago
psi29a 2964e0d4fd Merge branch 'font_cleanup' into 'master'
Remove code which became redundant due to changes in way how we load bitmap fonts

See merge request OpenMW/openmw!2190
2 years ago
Andrei Kortunov 8ff64ca176 Add a default way to store arrays in the settings.cfg 2 years ago
Andrei Kortunov a787625c65 Remove code which became redundant due to changes in way how we load bitmap fonts 2 years ago
Evil Eye 55134d1e31 Use string_view in the CharacterController 2 years ago
psi29a 17a0063a7c Merge branch 'async_delete_animation' into 'master'
Destruct animation asynchronously when unloading a cell

See merge request OpenMW/openmw!2177
2 years ago
psi29a bbcf7809f0 Merge branch 'gui_cleanup' into 'master'
GUI cleanup

See merge request OpenMW/openmw!2169
2 years ago
elsid d165966bea
Make OSGTexture final
To show that there are no more inheritance levels and also help compiler to
better optimize virtual function calls. There is no need to access virtual table
when compiler calls a virtual function of a final type.
2 years ago
elsid 5f800279ac
Remove unused Gui::FontLoader::mTextures 2 years ago
elsid 0614b82452
Restore UnrefQueue to destruct animation asynchronously 2 years ago
Andrei Kortunov e0c05a15fb Post processing shaders localization 2 years ago
psi29a ad687c380a Merge branch 'nif' into 'master'
Move NIF implementation to cpp files

Closes #6518

See merge request OpenMW/openmw!2170
2 years ago
Andrei Kortunov c36c28e8f9 Move NIF implementation to cpp files 2 years ago
Petr Mikheev 643e33c11a Merge branch 'lua_pathfinding_bindings' into 'master'
Add bindings for navigator utils functions (#6690)

See merge request OpenMW/openmw!2128
2 years ago
elsid 27cc901e76
Add bindings for navigator utils functions 2 years ago
elsid 036937ee02
Store RenderManager textures by value 2 years ago
elsid 6738722aa5
Initialize all required osgMyGUI::DataManager members in constructor 2 years ago
elsid 1c507125df
Remove empty functions 2 years ago
elsid d307178683
Replace components/vfs/manager.hpp include by forward declaration 2 years ago
elsid a281bcaf90
Remove redundant Platform::initialize function 2 years ago
elsid c0e1642d7f
Use unique_ptr for osgMyGUI::Platform members 2 years ago
Andrei Kortunov de58c9dff3 Get rid of obsolete osg::Geode where it is possible 2 years ago
Andrei Kortunov 168a097c8b Improve binding VFS to MyGUI 2 years ago
psi29a 3b75ae7ff1 Merge branch 'terrain-include-cleanup' into 'master'
Cleanup includes in Terrain component

See merge request OpenMW/openmw!2157
2 years ago
Matt c6bc264b35 Use correct assertion for the file implementation 2 years ago
psi29a 4a15fae588 Merge branch 'fix-fileclose' into 'master'
Use ScopedHandle for File::Handle

See merge request OpenMW/openmw!2159
2 years ago
ζeh Matt 8f7ec42c09
Close handle if valid for move assignment 2 years ago
Andrei Kortunov 4e7fe5a8bd Set VFS only once 2 years ago
ζeh Matt 8a724eb772
Delete assignment and copy constructor 2 years ago
ζeh Matt 3c8ef8463c
Close only valid handles 2 years ago
Petr Mikheev e222afc764 Merge branch 'fwd-lua-vfs' into 'master'
Type forward VFS::Manager in luastate.hpp and l10n.hpp

See merge request OpenMW/openmw!2158
2 years ago
ζeh Matt 2014ea40b9
Use ScopedHandle for File::Handle 2 years ago
psi29a 40cab76de5 Merge branch 'fonts' into 'master'
Enhance a way to setup fonts and layout files

See merge request OpenMW/openmw!2112
2 years ago
ζeh Matt c5d85c1854
Revert removal of <atomic> 2 years ago
ζeh Matt 764d34362e
Type forward VFS::Manager in luastate.hpp and l10n.hpp 2 years ago
ζeh Matt ddf43ec42f
Move structs into separate headers, cleanup includes, cleanup forwarders 2 years ago
ζeh Matt ce556ba0cc
Remove obsolete LowLevelFile 2 years ago
Andrei Kortunov 845a812ebf Drop fonts export - users are supposed to use TrueType fonts or mods with legacy format 2 years ago
Andrei Kortunov 5bc5c1bb0c Use our fonts as a fallback 2 years ago
Andrei Kortunov 1f864e3127 Do not override monospace font 2 years ago
Andrei Kortunov dc0d6fe31d Avoid code duplication 2 years ago
Andrei Kortunov facdc8fc0d Use string_view 2 years ago
Andrei Kortunov d83382d236 Rework Profiler to work with VFS 2 years ago
Andrei Kortunov 59c4ea014d Rework StatsHandler to support VFS 2 years ago
Andrei Kortunov 6f6b5ba04b Some refactoring 2 years ago
Andrei Kortunov db686b25c2 Use fallback data from openmw.cfg to setup fonts 2 years ago
Andrei Kortunov 8513bc9620 Fix build error on MSVC 2 years ago
Andrei Kortunov 8fc3635c2c Use case-insensitive font keys, remove debug code 2 years ago
Andrei Kortunov c47a48e25d Inject layout files to VFS 2 years ago
Andrei Kortunov 2630bc21dd Allow to override MyGUI layout 2 years ago
Andrei Kortunov 4ddba5142e Introduce font mappings 2 years ago
Andrei Kortunov dd04bfccfb Load fonts 2 years ago
Evil Eye 3967509cdd Use meaningful names instead of pretending we don't know what snow is 2 years ago
psi29a 7c442926f8 Merge branch 'platform-file' into 'master'
Move platform specific file code into platform and cleanup LowLevelFile

See merge request OpenMW/openmw!2143
2 years ago
psi29a b032a643f9 Merge branch 'vfs_string_view' into 'master'
Use std::string_view in VFS::Manager

See merge request OpenMW/openmw!2148
2 years ago
psi29a 6cc3ec12db Merge branch 'ci-werror' into 'master'
Windows, MSVC: Enable warnings as errors on CI

See merge request OpenMW/openmw!2146
2 years ago
ζeh Matt 03302a8f5b
Conditionally build cpp for platform, remove obsolete header 2 years ago