1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 18:39:29 +00:00
OpenMW/components/terrain
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`.
2021-10-20 23:02:15 +02:00
..
buffercache.cpp Sprinkle some const-ref in loop 2021-09-04 20:50:59 +02:00
buffercache.hpp
cellborder.cpp fixes build (#3134) 2021-09-29 17:10:58 +02:00
cellborder.hpp fixes build (#3134) 2021-09-29 17:10:58 +02:00
chunkmanager.cpp remove mDebugChunks from chunkManager 2021-09-27 21:38:12 +02:00
chunkmanager.hpp improves paging preloader (#3126) 2021-09-27 21:32:18 +02:00
compositemaprenderer.cpp removes UnrefQueue (#3181) 2021-10-20 23:02:15 +02:00
compositemaprenderer.hpp removes UnrefQueue (#3181) 2021-10-20 23:02:15 +02:00
defs.hpp
material.cpp optimise chunk drawing order (#3116) 2021-09-21 22:41:07 +02:00
material.hpp refactor and fix wobbly shores 2021-08-04 17:49:57 -07:00
quadtreenode.cpp
quadtreenode.hpp
quadtreeworld.cpp quadtreeworld.cpp (#3174) 2021-10-16 21:48:13 +02:00
quadtreeworld.hpp fixes build (#3134) 2021-09-29 17:10:58 +02:00
storage.hpp
terraindrawable.cpp improves paging preloader (#3126) 2021-09-27 21:32:18 +02:00
terraindrawable.hpp improves paging preloader (#3126) 2021-09-27 21:32:18 +02:00
terraingrid.cpp
terraingrid.hpp
texturemanager.cpp
texturemanager.hpp
viewdata.cpp attempts to fix spellcasting freezes (#3146) 2021-10-04 22:00:31 +02:00
viewdata.hpp improves paging preloader (#3126) 2021-09-27 21:32:18 +02:00
world.cpp removes UnrefQueue (#3181) 2021-10-20 23:02:15 +02:00
world.hpp removes UnrefQueue (#3181) 2021-10-20 23:02:15 +02:00