   ID3DXSprite not too shabby
  I have been having a really hard time trying to get IndexBuffers to work for batching quads.  I must be stupid or something but I just can''t grasp it (new to 3D).Anyway, on my "measly" AMD 1Ghz, Radeon 7500 machine, I am drawing 300 tiles (32x32 on 640x480) at 719 FPS using ID3DXSprite.I think I am just going to say "F IT" and just use ID3DXSprite.  It''s easy, the summer update is fast, and I get sweet alpha blending, rotation, and color overlays.Does anyone see a problem with this?  I''ve spent a week trying to batch.  I spent 1 day getting the 719 FPS using ID3DXSprite.Am I missing something here?  lol-cb   ~ c  o l ec o ~  Rock the cradle of love!You stupid WANKER!S i g n a l D E V .comMetroid Classic
  I had the same problem when I was starting out.  I actually managed to make an engine using the quads but the code was so messy and I was having weird glitches so I scrapped it and went with ID3DXSprite.  Much less to worry about, no noticable loss in performance, easy features, what''s not to love? ;  If it works for you, then use it D3DX functions and interfaces are very optimized, but for certain types of batching, I think writing your own routines generally results in more efficient implementation (because AFAIK D3DX uses own index/vertex buffers for each instance of the sprite class, and that''s usually inefficient). Could be wrong about that though, haven''t seen the d3dx source :D-Nik ;quote:(because AFAIK D3DX uses own index/vertex buffers for each instance of the sprite class, and that''s usually inefficient). But when would you ever want to use more than two instances of it? (only for different sorting method)I think that one would have to be reeeaally good in coding, optimizing and mathematics to improve this D3DX thingy.  --------------"We cannot all be masters." - William Shakespeare ;  You could write your own to outperform D3DXSprite.  You know what your app needs to do and what it doesn''t need to do, so you can optimize specifically for that.  D3DXSprite is a general solution so it can''t take those sorts of things into account.However, if it does what you need then I''d keep using it.  If later on you discover it no longer suits your needs you can then worry about writing your own.  And by then you''ll have a better idea of what you really need in a sprite engine too.   Stay Casual,KenDrunken Hyena