19 Mar 2012 16:11
Too slow performance on RichTextBox?
sharkal <wolfgang.ginner <at> kapsch.net>
2012-03-19 15:11:38 GMT
2012-03-19 15:11:38 GMT
Hi,
i am listening on some udp ports at the same time, where messages will be
received asynchronous in average ~ each 5-10ms. These messages i will write
into a logfile at a lower level ( own thread) and also display the message
in the GUI in a RichTextBox with a certain color. For this, i add the
messages in a list and a backgroundworker will flush the list after a
certain period into the RichTextBox:
rtxtLogMessages.SuspendLayout();
foreach (var log in logMessages)
{
rtxtLogMessages.AppendText(log.Value + "\n");
}
rtxtLogMessages.ResumeLayout(true);
*The problem is*, that displaying the text takes too long time. If i receive
messages in an interval around 25ms, then it is fast enough.
I heard, that it is possible to change any low-level settings of mono to
have a better performance. Does anyone has an idea, how to do or what i have
to do to solve the problem?
In Windows, the performance is fast enough.
--
View this message in context: http://mono.1490590.n4.nabble.com/Too-slow-performance-on-RichTextBox-tp4485123p4485123.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist - Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
(Continue reading)
RSS Feed