Commit Graph

12 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 8ca3c3b123 Mark overrided methods by override keyword 4 years ago
elsid 40ad87bc4d
Replace OpenThreads by std types 4 years ago
Andrei Kortunov cad45e96ac Remove redundant mCompile set - we do not use data from it anyway 5 years ago
bzzt aa5a071aef Delete composite map layers in the background thread 5 years ago
scrawl 123f7b83d5
Make the CompositeMapRenderer use available time and add related setting 6 years ago
scrawl 7f5beb3172 Remove unused includes 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 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