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" <[email protected]> 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to