Commit Graph

19 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
elsid 40ad87bc4d
Replace OpenThreads by std types 4 years ago
Andrei Kortunov 0e1f5f68b6 Do not allow different threads to compile the same composite map 5 years ago
Andrei Kortunov cad45e96ac Remove redundant mCompile set - we do not use data from it anyway 5 years ago
bzzt c2986b3bd7 Do not block the loading thread while compiling composite maps in the
draw thread
5 years ago
bzzt aa5a071aef Delete composite map layers in the background thread 5 years ago
bzzt 172cb74763 Delete composite map layers on demand 5 years ago
Andrei Kortunov e06f0b797a Replace all NULLs to nullptr 6 years ago
scrawl 9b8c56761b
Fix timing error 6 years ago
Alexander "Ananace" Olofsson 145b47a550
Fix Windows builds
`std::min`/`std::max` are part of algorithm, which is not implicitly included in Windows builds
6 years ago
scrawl 123f7b83d5
Make the CompositeMapRenderer use available time and add related setting 6 years ago
scrawl c992cb6e82 Fix texture not being applied on rendering the composite map (Fixes #3791) 7 years ago
scrawl 11bee6ee35 Avoid compiling composite maps that are no longer referenced 7 years ago
scrawl e7a0878c10 Add CompositeMapRenderer info to the stats panel 7 years ago
scrawl c921620ef3 Compile the drawables of a composite map one by one to avoid frame drops for larger maps 7 years ago
scrawl 47ca8aeee5 Use the time elapsed instead of # compiled as limit 7 years ago
scrawl 8a6d909b22 Fix composite map being compiled twice 7 years ago
scrawl 683e625c6c Rewrite CompositeMapRenderer to be based on Drawable and share the FBO 7 years ago
scrawl b1d4bb5708 Add CompositeMapRenderer
Temporarily render all terrain using composite maps for testing purposes
7 years ago