- #1
pat65
- 8
- 1
Hello All,
OK, I have been programming since the early 1980's. Programmed in many different languages along the way such as Pascal, C++, C, Visual Basic, and some C# (among others). I pretty much program so that I can model physics. I find it GREAT way to actually understand the physics.
When I create a model, I primarily plot individual points as a means to express the model. The problem I have been having for quite a while now is the SPEED at which I am able to plot an individual point. I mean my C++ code running on a 33MHz, 386 CPU plots points faster then my Visual Basic code running on my i7, 2.6GHz CPU or even worse, my C# code. C# is dismal in Visual Studio when using a form. It does not even have a plot point function. All I can do is plot a line that is one point is size.
I think the "language overhead" is too great on these "new" languages and that is hugely decreasing the speed at which I can actually plot a point, but running C++ on my current machine and using graphics.h is proving to be cumbersome and I have not gotten it to actually work.
So I need some serious advice on what I need to do to speed up the plotting. What language is the best for this? Learning a new language is no problem. I just need to know which one and what graphing methods I should use. So, should I plot individual points or is that old school? How do present days programmers plot graphics with high speed?
I would greatly appreciate any and all advice on this.
Thanks,
Pat
OK, I have been programming since the early 1980's. Programmed in many different languages along the way such as Pascal, C++, C, Visual Basic, and some C# (among others). I pretty much program so that I can model physics. I find it GREAT way to actually understand the physics.
When I create a model, I primarily plot individual points as a means to express the model. The problem I have been having for quite a while now is the SPEED at which I am able to plot an individual point. I mean my C++ code running on a 33MHz, 386 CPU plots points faster then my Visual Basic code running on my i7, 2.6GHz CPU or even worse, my C# code. C# is dismal in Visual Studio when using a form. It does not even have a plot point function. All I can do is plot a line that is one point is size.
I think the "language overhead" is too great on these "new" languages and that is hugely decreasing the speed at which I can actually plot a point, but running C++ on my current machine and using graphics.h is proving to be cumbersome and I have not gotten it to actually work.
So I need some serious advice on what I need to do to speed up the plotting. What language is the best for this? Learning a new language is no problem. I just need to know which one and what graphing methods I should use. So, should I plot individual points or is that old school? How do present days programmers plot graphics with high speed?
I would greatly appreciate any and all advice on this.
Thanks,
Pat