Skip to content

Commit

Permalink
Fixed non-responsive GUI
Browse files Browse the repository at this point in the history
Manipulation of views (slicing, view rotation) was very slow, because socket polling timeout was set to 10ms
  • Loading branch information
lassoan committed Aug 22, 2018
1 parent 4da3fc4 commit 0d8179f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JupyterKernel/xSlicerServer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ xSlicerServer::make_socket_notifier(const zmq::socket_t& socket, const QString&
new QSocketNotifier(socket.getsockopt<quintptr>(ZMQ_FD), QSocketNotifier::Read));

QObject::connect(socket_notifier.data(), &QSocketNotifier::activated, [=](int){
poll(10);
poll(0);
});

return socket_notifier;
Expand Down

0 comments on commit 0d8179f

Please sign in to comment.