Re: How can I draw faster than .NET graphics?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



as strange as it may look, converting my images to bmp made the fps go from
4 fps to 6 fps... I just don't understand why it changes anything... Does
the framework load the file each time it draws?!? I load it once using new
Bitmap(filename) into a member Bitmap variable... so I don't see why it
influences the performance of the draw... I'd like to have a bit more
performance tought... like I said earlier, I'd like to have at least 10 fps
assuming the target cpu is P3 1ghz and I'm testing on a P4 3Ghz...

thanks a lot

ThunderMusic


"ThunderMusic" <NoSpAmdanlatathotmaildotcom@xxxxxxxxxx> wrote in message
news:ukd4PcFyGHA.3492@xxxxxxxxxxxxxxxxxxxxxxx
No change if I still draw both images (one will just be behind the other
without showing), if I draw only one of the two images I get 6-8 FPS...
Can this be because my bitmaps are from jpg? (it's still a bitmap
structure, so I guess it does not change anything)

thanks

"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:edkMg9EyGHA.1256@xxxxxxxxxxxxxxxxxxxxxxx
"ThunderMusic" <NoSpAmdanlatathotmaildotcom@xxxxxxxxxx> wrote in message
news:O8Z5JjEyGHA.3440@xxxxxxxxxxxxxxxxxxxxxxx
using Format32bppPArgb, I've gone from 3 FPS to 4FPS (not a big enough
increase in performance) I would like to have at least 10FPS to be
acceptable... Also to note I am on a P4 3Ghz, I don't know how it will
run on a P3 1Ghz or something like it... there must be a way to draw
faster... ;)

That is the the right pixel format. I'm not sure why it's slow but it
might be because of the alpha you are setting. Try seeing how fast it
draws with no transparancy.

Michael





.



Relevant Pages

  • Re: [long] Graphical glitch with tiles
    ... I'm trying to write an app that is somewhat similar to a jigsaw game. ... I want to put pieces of smaller images on a larger image. ... there are graphical flaws in the rendering that make my program useless. ... It actually draws a white box, and it draws another smaller white box on top of the large one. ...
    (comp.graphics.api.opengl)
  • How do I prevent multiple connections when drawing dynamic images?
    ... I have an ASP.NET page that draws over 32 dynamic images using an HttpModule ... Since IIS under Win2K Pro has a limit of 10 ... connections, some of the images do not get drawn because it appears that the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Polar Plot.vi
    ... The polar plot vi draws two images, the grid and the actual plot by using a vi called draw multiple lines.  Unfortunately, the function that draws the polar plot only allows for a single color, as shown in the image below: ...
    (comp.lang.labview)
  • Re: pdflatex includegraphics bounding box [ without the image ]
    ... using includegraphics. ... does not include the images but just draws the bounding box of the ... with the images included. ...
    (comp.text.tex)