• Advertisement

Archived

This topic is now archived and is closed to further replies.

From GDi Bitmap to Texture Speed

This topic is 5061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Why is creating a texture from a bitmap so slow? Saving a texture then loading it is event faster, is there some way to optimize bitmaps? (I''ve already set the bitmap to the bpp32ARGB format...)

Share this post


Link to post
Share on other sites
Advertisement
Without any hint or code how you actually put a bitmap into a texture surface it''s difficult to see where it could be slow.

How do you create the texture?
How do you load the bitmap?
How do you move the bitmaps data into the surface?

Share this post


Link to post
Share on other sites
The create call alone wouldn''t be slow. You call it only once. I imagine that the bitmap-to-surface-code is the slowdown.

Managed pool only means that the surfaces will be recreated when your device gets lost.

Share this post


Link to post
Share on other sites

  • Advertisement