mirror of
https://github.com/overte-org/overte.git
synced 2025-04-05 09:52:42 +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) {
|
||||
// Prepare the ShapePipelines
|
||||
ShapePlumberPointer shapePlumberDeferred = std::make_shared<ShapePlumber>();
|
||||
initDeferredPipelines(*shapePlumberDeferred, FadeEffect::getBatchSetter(), FadeEffect::getItemUniformSetter());
|
||||
ShapePlumberPointer shapePlumberForward = std::make_shared<ShapePlumber>();
|
||||
initForwardPipelines(*shapePlumberForward);
|
||||
static ShapePlumberPointer shapePlumberDeferred = std::make_shared<ShapePlumber>();
|
||||
static ShapePlumberPointer shapePlumberForward = std::make_shared<ShapePlumber>();
|
||||
static std::once_flag once;
|
||||
std::call_once(once, [] {
|
||||
initDeferredPipelines(*shapePlumberDeferred, FadeEffect::getBatchSetter(), FadeEffect::getItemUniformSetter());
|
||||
initForwardPipelines(*shapePlumberForward);
|
||||
});
|
||||
|
||||
uint backgroundViewTransformSlot = render::RenderEngine::TS_BACKGROUND_VIEW + transformOffset;
|
||||
uint mainViewTransformSlot = render::RenderEngine::TS_MAIN_VIEW + transformOffset;
|
||||
|
|
Loading…
Reference in a new issue