[Mono-winforms-list] Too slow performance on RichTextBox?
Michael Mudge
michael at mudge.com
Tue Mar 27 12:03:46 UTC 2012
I'm actually surprised at that Windows performance. Typically Thread.Sleep
only has a 15ms resolution... try appending 15 times between each sleep.
On Mar 27, 2012 7:16 AM, "sharkal" <wolfgang.ginner at kapsch.net> wrote:
> Hi,
> at the meantime i wrote a small test programm where it does the following:
>
> while (indexCounter < maxIndexCount)
> {
> var timestamp = (String.Format("{0:yyMMdd
> HH:mm:ss:fff}", DateTime.Now));
>
> rtxtOutput.AppendText(indexCounter + " " + timestamp +
> " This is a output text
> to test the output time.\n");
> indexCounter++;
> Thread.Sleep(1);
> }
> So the while loop do nothing more, than writing the actual timestamp to
> the
> textbox, sleep 1ms and write the next text out.
> If i do this with mono, i have a time differents of ~ 15-20ms , in windows
> it is around 1-2ms.
>
> The Richtextbox is all with the default settings.
> Does anyone knows how to get a better performance here?
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Too-slow-performance-on-RichTextBox-tp4485123p4508543.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20120327/4cc96aa1/attachment.html>
More information about the Mono-winforms-list
mailing list