jerome
Newcomer
Hi everyone.
I am trying to write a .NET application that displays some simple 2D graphics in a window. The graphics that are displayed consist of many individual lines of varying shades of green, depending on the data received by the application.
All of this is working, but the program consumes nearly all of my CPU. I really need to improve the performance of my code and I have identified that the bottleneck occurs when I call DrawLine on my offscreen surface for each of the many lines that are displayed.
As extra information, I am refreshing the display at 50Hz to get a nice smooth display. I have a NVidia Riva TNT2 Model 64 video card but it does not seem to improve the performance over using the display chipset on the motherboard.
Any ideas on how I can improve the performance of the DrawLine command would be great.
Bye.
I am trying to write a .NET application that displays some simple 2D graphics in a window. The graphics that are displayed consist of many individual lines of varying shades of green, depending on the data received by the application.
All of this is working, but the program consumes nearly all of my CPU. I really need to improve the performance of my code and I have identified that the bottleneck occurs when I call DrawLine on my offscreen surface for each of the many lines that are displayed.
As extra information, I am refreshing the display at 50Hz to get a nice smooth display. I have a NVidia Riva TNT2 Model 64 video card but it does not seem to improve the performance over using the display chipset on the motherboard.
Any ideas on how I can improve the performance of the DrawLine command would be great.
Bye.