mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 00:33:13 +02:00
Merge pull request #1360 from HifiExperiments/staticPlumbers
fix long startup times
This commit is contained in:
commit
44c600a184
1 changed files with 7 additions and 4 deletions
|
@ -96,10 +96,13 @@ void RenderDeferredTask::configure(const Config& config) {
|
||||||
|
|
||||||
void RenderDeferredTask::build(JobModel& task, const render::Varying& input, render::Varying& output, render::CullFunctor cullFunctor, uint transformOffset, size_t depth) {
|
void RenderDeferredTask::build(JobModel& task, const render::Varying& input, render::Varying& output, render::CullFunctor cullFunctor, uint transformOffset, size_t depth) {
|
||||||
// Prepare the ShapePipelines
|
// Prepare the ShapePipelines
|
||||||
ShapePlumberPointer shapePlumberDeferred = std::make_shared<ShapePlumber>();
|
static ShapePlumberPointer shapePlumberDeferred = std::make_shared<ShapePlumber>();
|
||||||
initDeferredPipelines(*shapePlumberDeferred, FadeEffect::getBatchSetter(), FadeEffect::getItemUniformSetter());
|
static ShapePlumberPointer shapePlumberForward = std::make_shared<ShapePlumber>();
|
||||||
ShapePlumberPointer shapePlumberForward = std::make_shared<ShapePlumber>();
|
static std::once_flag once;
|
||||||
initForwardPipelines(*shapePlumberForward);
|
std::call_once(once, [] {
|
||||||
|
initDeferredPipelines(*shapePlumberDeferred, FadeEffect::getBatchSetter(), FadeEffect::getItemUniformSetter());
|
||||||
|
initForwardPipelines(*shapePlumberForward);
|
||||||
|
});
|
||||||
|
|
||||||
uint backgroundViewTransformSlot = render::RenderEngine::TS_BACKGROUND_VIEW + transformOffset;
|
uint backgroundViewTransformSlot = render::RenderEngine::TS_BACKGROUND_VIEW + transformOffset;
|
||||||
uint mainViewTransformSlot = render::RenderEngine::TS_MAIN_VIEW + transformOffset;
|
uint mainViewTransformSlot = render::RenderEngine::TS_MAIN_VIEW + transformOffset;
|
||||||
|
|
Loading…
Reference in a new issue