Real-time data updating

It is doubtful whether someone would need 50,000 updates per second (like on the screenshot) – nobody is able to digest such volume of information. However this example shows that .Net Grid has huge reserve of performance. Of course, it is better to have this reserve rather than encounter lack of performance in the very end of project development.

In the sample form, the user can specify the number of grid rows and the update-rate (update operations per seconds). Updates may come from two sources:

  • GUI thread (supports more than 50,000 updates per second)
  • Non-GUI thread

In the sample form the user can also see the following information:

  • Visible size of the grid
  • The number of updates in visible bounds of the grid

Besides, the user can watch very important OnPaint statistics.

Average time passed in OnPaint() – is an average time spent for OnPaint() method call in milliseconds. Multiplying the Average Time by Average Calls gives a value that indicates how much time does the .Net Grid spend on painting per second (in other words: payload of the GUI thread).