Commit Graph

73 Commits (a854a6e04a8437d74078906d1d1720c0649e4e6f)

Author SHA1 Message Date
Bo Svensson a854a6e04a
removes UnrefQueue (#3181)
Currently, we use an `UnrefQueue` which supposedly aims to transfer destruction costs to another thread. The implications of this unusual pattern can not be well understood because some allocators might free resources more efficiently if they are freed by the same thread that allocated them. In addition, `UnrefQueue` complicates the validation of thread safety in our engine. Lastly, our current usage of `UnrefQueue` triggers `ref()`, `unref()` atomic operations as objects are passed into the queue. These operations could be more expensive than the actual destruction.

With this PR we thus remove `UnrefQueue`. We can expect these changes to have a minor impact at most because we free most resources elsewhere in `ResourceSystem::updateCache`.
3 years ago
Andrei Kortunov 3032b177a1 Remove redundant includes 5 years ago
scrawl cfdf99f601
Revert "Merged pull request #1573"
This reverts commit 7324bd368f, reversing
changes made to 810e4416f6.
6 years ago
Andrei Kortunov 22fb1f3403 Play spellcasting effects from objects 6 years ago
Allofich ff3e307059 Pass parameters by const reference 7 years ago
scrawl 14225a42c6 Remove unused pointer to IncrementalCompileOperation 7 years ago
scrawl 00d4fea91c Derive Animation from osg::Referenced to allow the UnrefQueue to delete it 7 years ago
scrawl d11c2864df Introduce UnrefQueue to handle the deleting of no longer needed objects in the background thread 8 years ago
scrawl 7a8a7e3dd6 Add const version of getAnimation 9 years ago
scrawl 7a4aac1842 Use a ConstPtr for the PtrAnimationMap 9 years ago
scrawl 723beb1cac Move IncrementalCompileOperation to SceneManager 9 years ago
scrawl 8b322fcd06 Implement getFacedObject using osgUtil::IntersectionVisitor 9 years ago
scrawl 627fee07bc Minor cleanup 9 years ago
scrawl 2235d2978b Restore animation text key handling 9 years ago
scrawl b7258c8d23 Readded Objects::updatePtr 9 years ago
scrawl 77f733362c Add stats graphs for Script, Mechanics and Physics timings 9 years ago
scrawl 9de575ad42 Use IncrementalCompileOperation to incrementally upload OpenGL objects during the loading screen
For now, not much difference, but should result in a sizable speed up once MyGUI no longer needs the DYNAMIC flag (i.e. the loading screen truly renders in the background).
9 years ago
scrawl 1a19cd3607 Some cleanup 9 years ago
scrawl edc5cad79e Port Animation::addEffect 9 years ago
scrawl 5dd1ab24fe More efficient StateSetController, beginnings of sky rendering 9 years ago
scrawl c92592493e OpenMW: create a window and render the starting cell(s) 9 years ago
scrawl 4e69e7cc0f OpenMW compiles and runs w/o render window 9 years ago
scrawl 5d7eb11596 Fix lights being rendered on the map (broken by d55fe43fc9) 10 years ago
scrawl d55fe43fc9 Support animation groups for Light and Door objects (Fixes #2039) 10 years ago
scrawl 28fe81df90 Make Lights with OffDefault flag not emit light nor particles when placed in a cell (Fixes #1796) 10 years ago
scrawl 823ccb1b3d Don't batch statics that have "references persist" set (temporary fix for Arkngthand door - Fixes #1386) 10 years ago
scrawl c004fb778f Get rid of underscore defines. They are reserved by the standard. 11 years ago
scrawl 5931fdcbde Implement NiBillboardNode. Flags not handled yet. 11 years ago
scrawl 3452bd2e0b Add glow effect for enchanted items 11 years ago
scrawl 0dc2e829dd Lots of cleanup. Implemented Absorb and Resist. Implemented several instant effects. Added hand VFX. 11 years ago
Chris Robinson 076e7d8e16 Make insertBegin internal 11 years ago
Chris Robinson 0458fd5531 Remove unused/unneeded parameters 11 years ago
Chris Robinson 80d271aeb1 Remove unused stuff 11 years ago
Chris Robinson 3555476dfd Use Animation-derived objects for generic objects 11 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 11 years ago
Glorf 521bebd2f4 Fallback system rewritten, added light fallbacks 11 years ago
scrawl cc9b72b9b1 Removing some leftovers of mwRoot node 11 years ago
Chris Robinson 74b8095fc7 Use default parameters where appropriate 11 years ago
ChrisKCat 9e7b559b09 Merge pull request #6 from scrawl/lights
For light objects without an AttachLight bone, attach the light to the c...
11 years ago
scrawl 1ae2d3c6ab For light objects without an AttachLight bone, attach the light to the center of the object instead of the origin. 11 years ago
greye 6a8c532244 fix and unify object cell change update in mwrender 11 years ago
scrawl f17ea109ca Fix light positions 11 years ago
Chris Robinson 923d0d6eb4 Fix up some header includes 11 years ago
Nathan Jeffords 0f3712f284 change flickering light's brightness pattern 12 years ago
greye 0e3f70413e a very little comments 12 years ago
greye d6150b7482 high-level implementation, unstable 12 years ago
scrawl 865bfc6f47 sync mrt_output setting 12 years ago
Marc Zinnschlag 87667ab57e Issue #107: Ptr related include cleanup 12 years ago
Marc Zinnschlag 76174098c7 Issue #107: CellStore moved from ESMS to MWWorld 12 years ago
scrawl c85c794c86 fixed some cppcheck issues 12 years ago