Начало вопроса здесь.
http://www.linux.org.ru/view-message.jsp?msgid=2655553
Кратко суть: у некоторых товарищей данный код жрёт проц до 10%.
for(int i = 0; i < 10; ++i)
{
QTimer *timer = new QTimer(this);
timer->start(30+i);
}
После совещания с товарищами на http://prog.org.ru удалось найти временное решение данной проблемы: это присвоить переменной QT_NO_GLIB любое значение. Подробнее о назначении этой опции написано здесь: http://qtnode.net/wiki?title=GLib_Event_Loop
Ну и официальный ответ представителя троллтехов:
The Valgrind output did not indicate to me that Qt was doing anything
wrong here. It seems like almost all (~89%) of the time is spent inside
the g_main_context_iterate().
Even so, I was still unable to reproduce the 10% CPU load on any of the
machines I tried, even a single core 1.8 GHz Pentium M laptop.
I'm afraid there is nothing else we can do here. If you do not want the
performance hit on your computer, I suggest disabling GLib.
Regards,
--
Jason Barron, Support Engineer
Trolltech ASA, Oslo - http://www.trolltech.com
От себя замечу: обновил glibc и ядро, однако проблема осталась :(


Ответ на:
комментарий
от INFOMAN


Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от golodranez



Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от golodranez

Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от golodranez

Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от anonymous


Ответ на:
комментарий
от generatorglukoff

Ответ на:
комментарий
от anonymous

Ответ на:
комментарий
от generatorglukoff

Ответ на:
комментарий
от generatorglukoff

Ответ на:
комментарий
от anonymous

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум qt3 vs qt4 (2006)
- Форум [быдлокодинг] Qt3 vs Qt4 (2008)
- Форум 2geek Qt3 vs Qt4 (2008)
- Форум [Некрофилия] Qt2 apps ->Qt3/Qt4 (2008)
- Форум Qt3 designer vs. Qt4 designer (2007)
- Форум Портирование приложения с Qt3 на Qt4 (2014)
- Форум Qt3 и Qt4 на одной машине. (2010)
- Форум Qt3 - Qt4 Оценка трудозатрат по портированию (2010)
- Форум Шрифты в qt3, qt4 и gtk2 (2008)
- Форум Портирование qt3/exmaples/tux на qt4 (2007)