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

Support image and progress over websockets, minor fixes #241

Merged
merged 4 commits into from
Nov 9, 2017

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@@ -126,6 +133,7 @@ class ApplicationParameters : public AbstractParameters
std::string _streamId;
std::string _tmpFolder;
bool _synchronousMode{false};
size_t _imageStreamFPS{60};
Copy link

Choose a reason for hiding this comment

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

we are become ambitious now :-)

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's just an upper limit. We will never render that fast anyways :)

_httpServer->broadcastText(message);
}

if (_engine->getRenderer().haveNewImage())
Copy link

Choose a reason for hiding this comment

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

hmmm, shouldn't this method be called hasNewImage() instead of haveNewImage()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, true. I'll have to recheck also if this works with Optix.

@@ -179,6 +194,24 @@ class RocketsPlugin : public ExtensionPlugin
::brayns::v1::Scene _remoteScene;
::brayns::v1::ForceRendering _remoteForceRendering;
::brayns::v1::CircuitConfigurationBuilder _remoteCircuitConfigBuilder;

class Timer
Copy link
Contributor

Choose a reason for hiding this comment

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

Can I ask what's the purpose of this timer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To limit the image stream to the configurable image stream FPS. 60 FPS by default

@tribal-tec tribal-tec merged commit abe08c1 into BlueBrain:rockets Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants