From: Robert J. <spa...@gm...> - 2010-10-27 22:03:29
|
2010/10/27 Robert Jonsson <spa...@gm...>: > > Also, we seem to have some performance problems with signals, atleast > I think that is the problem. > I remember from a previous Qt4 project that the signals/slots > mechanism in Qt4 is not as fast as in Qt3 (though much more flexible). > We need to go through it and see if we can scale down on the signal > usage for performance critical parts. Possibly we can change a signal property for signals that are problematic. It seems a define can be used to change the behaviour of signals. http://doc.qt.nokia.com/4.3/qt.html#ConnectionType-enum Setting the signal to specifically be Qt::DirectConnection that is. Since we come from Qt3 we should already be doing all the gui work in a single thread, which is what is needed here. It's not really listed but it looks probable that the default is the Qt::AutoConnection which, if it works, should already provide good performance.. Regards, Robert |