Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help writing efficient direct3d 2d code

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
I want to make efficient code. Is it bad to use multiple LPD3DXSPRITE sprites, one for each animation? I know that I could use just one sprite and if my screen has several moving animations, I could use that sprite to draw each animation. Or, I could use a separate sprite for each animated object.

I'm also curious about loading a lot of textures for animations (ie, like loading 150 animation .tga's for the main character or something). Is this bad? Should I load textures just before rendering? It seems to me like this might be slow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top