-
Notifications
You must be signed in to change notification settings - Fork 47
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
Minor cleanups, remove Engine::getParametersManager() #231
Conversation
brayns/Brayns.cpp
Outdated
createEngine(); | ||
|
||
#if (BRAYNS_USE_DEFLECT || BRAYNS_USE_NETWORKING) | ||
// after createEngine() to execue in parallel to scene loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo 'execue'
_parametersManager->getRenderingParameters().getEngine(); | ||
_engine = _engineFactory->get(engineName); | ||
_parametersManager.getRenderingParameters().getEngine(); | ||
_engine = _engineFactory.create(engineName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still _engine.reset() explicitly, otherwise two engines are active until the assignment to the unique_ptr is done
delete[] argv; | ||
return _engines[name]; | ||
} | ||
return make_unique<OSPRayEngine>(_argc, _argv, _parametersManager); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc, the reason for the copy of argv is that engines might mutate it, aka if the engine is not taking a const char*. Please check that, or we have a look together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that only the LivreEngine had a constness problem, but it is already making a copy of the args internally... I seriously hope that no engine actually alters the CL parameters though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hold on! ospray removes args from argv, so at least there we also need a copy it seems
argggggg!! |
AAAAAARRRRRRRRRRHHHHHHHH
… Le 25 oct. 2017 à 17:27, Raphael Dumusc ***@***.***> a écrit :
argggggg!!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No description provided.