fguihen Posted April 5, 2005 Posted April 5, 2005 i have an app that draws a lot to the screen. each time the paint() method is triggered, a load of mathsy stuff is done, and everything is redrawn to the screen. this is playing havoc with the processor, and the animation is kind of slow as the redraw takes so long, are there any commands in .NET, using c# where i can keep the processor for one task and deligate other computations to the math co-processor or the Graphics card( it being a graphics app?) Quote
Wile Posted April 5, 2005 Posted April 5, 2005 I dont think current CPU's have a math co-processor that you can choose to use or not. I believe most have one or more floating point and integer calculation units that are used when they are needed. If you really want to know more about that, you might take a look at this site http://www.aceshardware.com, they are VERY indepth but that isn't so bad, it means that you dont get the standard PR material you might get elsewhere ;). I believe you can use DirectX from .NET (so both C# and vb.net) but I don't know how that works, there is a separate subforum under the graphics & multimedia forum that deals with DirectX. Maybe that is a good place to start. Quote Nothing is as illusive as 'the last bug'.
fguihen Posted April 5, 2005 Author Posted April 5, 2005 I dont think current CPU's have a math co-processor that you can choose to use or not. I believe most have one or more floating point and integer calculation units that are used when they are needed. If you really want to know more about that, you might take a look at this site http://www.aceshardware.com, they are VERY indepth but that isn't so bad, it means that you dont get the standard PR material you might get elsewhere ;). I believe you can use DirectX from .NET (so both C# and vb.net) but I don't know how that works, there is a separate subforum under the graphics & multimedia forum that deals with DirectX. Maybe that is a good place to start. yea, i was down the directX road and it caused more problems than solutions. il give that site a look. thanks. Quote
Leaders snarfblam Posted April 5, 2005 Leaders Posted April 5, 2005 In short, the answer to your question is no. Some possible solutions are (1) use managed DirectX to speed up your drawing (as pointed out by wile), or (2) if possible you could use multiple threads. Also, if the mathsy stuff is ever re-calculating any of the same stuff see if you can't store it and re-use the data instead of re-calculating. Quote [sIGPIC]e[/sIGPIC]
Talyrond Posted April 6, 2005 Posted April 6, 2005 Hi, unfortunately GDI+ cant take advantage of any hardware acceleration, you have to wait for Avalon for that, so that leaves DirectX which you have tried. If you are developing a commercial app you may want to take a look at : http://www.vgdotnet.com/ But of course there are $$$! involved Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.