-
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
Add chunk ID and chunk RPC to support concurrent request-model-upload RPCs; bugfixes #389
Conversation
retest this please |
1 similar comment
retest this please |
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.
OK, +1
std::lock_guard<std::mutex> lock(_mutex); | ||
_binaryRequests.emplace(std::make_pair(clientID, param.chunksID), task); | ||
_requests.emplace(task, std::make_pair(clientID, param.chunksID)); | ||
_nextChunk = param.chunksID; |
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.
_nextChunk -> _nextChunkID ?
|
||
return task; | ||
} | ||
|
||
void setNextChunk(const size_t id) { _nextChunk = id; } |
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.
setNextChunk -> setNextChunkID ?
std::map<std::pair<uintptr_t, size_t>, | ||
std::shared_ptr<AddModelFromBlobTask>> | ||
_binaryRequests; | ||
std::map<TaskPtr, std::pair<uintptr_t, size_t>> _requests; |
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.
having a typedef for std::pair<uintptr_t, size_t> would be nice here
maybe try to clarify what is _requests and _binaryRequests
tests/ClientServer.h
Outdated
_brayns->preRender(); | ||
_wsClient.process(CLIENT_PROCESS_TIMEOUT); | ||
for (size_t i = 0; i < SERVER_PROCESS_RETRIES; ++i) | ||
_brayns->preRender(); |
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.
Check the above, not exactly retires at the preRender is always executed n times
Also avoid excessive markModified() of the scene as this leads to lots of unnecessary broadcasts of the scene during simulation playback.
No description provided.