Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ogre2 render pass high GPU usage #342

Merged
merged 2 commits into from
Jun 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ogre2/src/Ogre2RenderTarget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ void Ogre2RenderTarget::UpdateRenderPassChain(
ogre2RenderPass->OgreCompositorNodeDefinitionName());

// check if we need to create all nodes or just update the connections.
// if node does not exist then it means it has not been added to the
// chain yet, in which case, we need to recreate the nodes and
// connections
if (!node)
// if node does not exist then it means it either has not been added to
// the chain yet or it was removed because it was disabled.
// In both cases, we need to recreate the nodes and connections
if (!node && ogre2RenderPass->IsEnabled())
{
_recreateNodes = true;
}
Expand Down