[Paraview] vtkSMCollaborationManager::FollowUser(id) doesn't update view

Peter Debuchev peterdebuchev at gmail.com
Fri Jun 10 12:58:59 EDT 2016


Ok, that doesn't sound as bad as I expected. But still, is it necessary to
"poll" the socket, checking its "select" method?
I am not familiar with the details of socket communication, but I expect it
should be possible that the socket invokes some callback when a message
arrives? Or does some of the VTK design contradict such socket callbacks?

I found that it is always problematic performance-wise if more than a few
timers are running on one cpu.

Peter

2016-06-10 15:17 GMT+02:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:

> ProcessEvents() doesn't poll the server. It only "select"s on the
> socket to see if the server sent any new messages to the client.
>
> > One more question out of curiosity: isn't it quite ineffient, if clients
> > continuously invoke vtkNetworkAccessManager::ProcessEvents´()? For smooth
> > interaction this has to happen at least 10 times per second, which
> causes a
> > lot of network traffic by polling the server again and again,
> especially if
> > more than one client connects to the same server.
> > Isn't it possible to react on incoming server events by registering a
> > callback that does the same server event processing only when a new event
> > has occurred? I mean, all of VTK and ParaView is event based, why not the
> > server message processing?
> >
> > Peter
> >
> > 2016-06-09 18:29 GMT+02:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com
> >:
> >>
> >> Here's the fix:
> >>
> >> diff --git a/main.cxx b/main.cxx
> >> index dd47991..0f679ba 100644
> >> --- a/main.cxx
> >> +++ b/main.cxx
> >> @@ -65,7 +65,7 @@ int main(int argc, char* argv[]){
> >>    vtkSMSessionProxyManager* pxm = session->GetSessionProxyManager();
> >>
> >>    //Collaboration:
> >> -  vtkSMCollaborationManager
> >> *collaboration=vtkSMCollaborationManager::New();
> >> +  vtkSMCollaborationManager *collaboration=
> >> session->GetCollaborationManager();
> >>    collaboration->SetSession(session);
> >>    collaboration->UpdateUserInformations();
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160610/e872f612/attachment.html>


More information about the ParaView mailing list