Asynchronous GeometryTile deletion (#2051)
Co-authored-by: Tim Sylvester <tim@wetdogweather.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <mbgl/util/traits.hpp>
|
||||
#include <mbgl/util/std.hpp>
|
||||
#include <mbgl/util/logging.hpp>
|
||||
#include <mbgl/util/thread_pool.hpp>
|
||||
|
||||
#include <Foundation/Foundation.hpp>
|
||||
#include <Metal/Metal.hpp>
|
||||
@@ -42,6 +43,7 @@ Context::Context(RendererBackend& backend_)
|
||||
|
||||
Context::~Context() noexcept {
|
||||
if (cleanupOnDestruction) {
|
||||
Scheduler::GetBackground()->runRenderJobs();
|
||||
performCleanup();
|
||||
|
||||
emptyVertexBuffer.reset();
|
||||
@@ -60,7 +62,10 @@ Context::~Context() noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
void Context::beginFrame() {}
|
||||
void Context::beginFrame() {
|
||||
Scheduler::GetBackground()->runRenderJobs();
|
||||
}
|
||||
|
||||
void Context::endFrame() {}
|
||||
|
||||
std::unique_ptr<gfx::CommandEncoder> Context::createCommandEncoder() {
|
||||
|
||||
Reference in New Issue
Block a user