Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?)
Posted

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.

Nothing is as illusive as 'the last bug'.
Posted
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.

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...