   Should I Only draw between Sprite->Begin and Sprite->End()?
  Just as in topic. Sprite is my D3DXSprite object . Between the lines belowshould be rendered only graphic? and the rest so sounds key pushes etc handled outside?Sprite->Begin(D3DXSPRITE_ALPHABLEND);//RenderingSprite->End();//keyboard handling etc
  Yes, there is an update function in the wrapper already, you draw your graphics in the sprite batch.   ;  Thanks, and do you have any ideas how to create such a project to easily combine a render function inside Sprite->Begin() Sprite End() and the keyboard handling connected with it? I thought I would make 2 classes in my header file. One would contain rendering functions for every stage in my game and the second would contain keyboard functions for each stage   ;  what about instructions like if, switch etc...? Can I put them between Sprite->Begin() and Sprite->End()? For example:Sprite->Begin();If(shoot == true) Draw()...Sprite->End();Or only drawing?;what about instructions like if, switch etc...? Can I put them between Sprite->Begin() and Sprite->End()? For example:Sprite->Begin();If(shoot == true) Draw()...Sprite->End();Or only drawing?You can do yeah, but it's best to minimize the amount of time spent drawing, to improve fps etc. It would be better before rendering you were to decided what gets rendered and what doesn't.   ;  ok thanks, how to check fps of my program btw? Everybody knows it and I'm also curious 