Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Pipeline and rendering with pipeline implementation #256

Merged
merged 17 commits into from
May 27, 2016

Conversation

bilgili
Copy link
Contributor

@bilgili bilgili commented Mar 1, 2016

No description provided.

@@ -0,0 +1,63 @@
/* Copyright (c) 2011-2014, EPFL/Blue Brain Project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review copyright

@bilgili bilgili force-pushed the pipeline branch 6 times, most recently from 6db9e3f to e365b1e Compare March 4, 2016 14:47
* Executes the executable. Returns the futures that can be queried for data.
* @param pipeline to be executed.
*/
Futures execute( const ExecutablePtr& executable )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const Ptr&?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've discussed this before. Yes, const Ptr& is the preferred way to pass smart pointers as function arguments because it saves the automic counter increment. Whether the pointer is finally stored by the callee is an orthogonal issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, overall I should decrease the usage of Ptrs around. Lots of them makes things a bit fishy. Implementation are generally private so, it is possible to share them.

@bilgili bilgili assigned chevtche and unassigned hernando May 25, 2016
{
for( const auto& future: futures )
addFuture( future.getName(), future );

Copy link
Contributor

@chevtche chevtche May 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless line? :)

{
const Boxf& worldBox = lodNode.getWorldBox();
const bool isInFrustum = _frustum.boxInFrustum( worldBox );
if( !isInFrustum )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it's better... But you can collapse these two line:
if( !_frustum.boxInFrustum( worldBox ))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I am not sure if it make things more clear...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not add value but does not cloud information as well, so I rather keep it this way

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm with chevtche in this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) I am with my self but I would do !

@chevtche
Copy link
Contributor

+1

@bilgili bilgili merged commit 3913745 into BlueBrain:master May 27, 2016
@bilgili bilgili deleted the pipeline branch October 4, 2016 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants