Re: How can I draw faster than .NET graphics?
- From: "ThunderMusic" <NoSpAmdanlatathotmaildotcom@xxxxxxxxxx>
- Date: Fri, 25 Aug 2006 12:16:27 -0400
no change, still the same framerate...
"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:ed$mFzFyGHA.4176@xxxxxxxxxxxxxxxxxxxxxxx
"ThunderMusic" <NoSpAmdanlatathotmaildotcom@xxxxxxxxxx> wrote in message
news:eWp2lgFyGHA.4732@xxxxxxxxxxxxxxxxxxxxxxx
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?!?
No, it stores it as a bitmap no matter what the source but it does keep a
reference to the source and maybe reads it for certain things.
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...
Are you sure it's in Format32bppPArgb? If you load the bitmap from a file
I don't think it will be. You should load the bitmap as you are, create a
second bitmap of the same size but Format32bppPArgb, use the graphics
object to draw the first bitmap onto the second and then dispose the first
bitmap.
Michael
.
- Follow-Ups:
- Re: How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- References:
- How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- From: Michael C
- Re: How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- From: Michael C
- Re: How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- From: ThunderMusic
- Re: How can I draw faster than .NET graphics?
- From: Michael C
- How can I draw faster than .NET graphics?
- Prev by Date: Re: How can I draw faster than .NET graphics?
- Next by Date: Re: How can I draw faster than .NET graphics?
- Previous by thread: Re: How can I draw faster than .NET graphics?
- Next by thread: Re: How can I draw faster than .NET graphics?
- Index(es):
Relevant Pages
|