Add TaggedScheduler, couple lifetime of tasks and orchestrator (#2398)

This commit is contained in:
mwilsnd
2024-06-28 17:20:03 -04:00
committed by GitHub
parent b2fe5021b8
commit c4c75452b6
99 changed files with 759 additions and 489 deletions

View File

@@ -102,7 +102,7 @@ Context::Context(RendererBackend& backend_)
Context::~Context() noexcept {
if (cleanupOnDestruction) {
Scheduler::GetBackground()->runRenderJobs();
backend.getThreadPool().runRenderJobs(true /* closeQueue */);
reset();
#if !defined(NDEBUG)
@@ -115,7 +115,7 @@ Context::~Context() noexcept {
void Context::beginFrame() {
MLN_TRACE_FUNC();
Scheduler::GetBackground()->runRenderJobs();
backend.getThreadPool().runRenderJobs();
#if MLN_DRAWABLE_RENDERER
frameInFlightFence = std::make_shared<gl::Fence>();