开发者

Input of characters into RichTextBox too slow, how make more fast?

When I enter text using the keyboard, I see that the conclusion of characters in the editor window, a littl开发者_StackOverflow社区e behind the keystrokes, it do inconvenience in my work, how make that characters appear simultaneously with pressing keys.


Check to see if you have any ICommands in that view with complicated CanExecute code. Everytime a property changes (and a lot of property changes in a RichTextBox) these ICommands will check if they are still able to execute - and if the logic is heavy - you'll pay in terms of performance.

Try to see if you can reproduce it in a Window with nothing but a RichTextBox - if it still slow - check to see if you have upgraded your video-drivers, Direct-X or have anything using all your system resources.

Last, but not least - see if you can reproduce on a friends computer or another computer - input in RichTextBox should be near instantaneous.


If you turn down the application frame rate to around 5 it seems to make the input very fast.... but all your animations look like potato.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜