Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Guys,

 

I'm using DirectX - Direct3d - 9 - Managed, to build a 2d game. Although it's 2D i'm using the 3D interfaces.

Some time i uses Textures to display images, using the Sprite object, and sometime i uses Surfaces using the UpdateSurface or StretchRectangle methods.

 

I would like to know, generally, which is better to use? surface or texture?

Which consume more memory?

Which one is faster to draw?

 

Thanks a lot.

LDV

Posted
hmm

i use textures - ive never used a Surface before...

i cant exactly give you the benifits of each... but i think Textures are the way to..

Surfaces are a component of textures translation a texture is made up of one or many surfaces so logicly i would think a surface takes less memory and time to render however it is less flexible than a texture. i could be wrong about this though.

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...