Yes that is what I try to do right now.
if I scope the profiling on Game.Draw i got this:
This profiling has been done on my desktop computer.
Effect127 is the effect used on all my models.
WorldModel is a class I use for containing Model,position,rotation, hitbox, etc… for each object.
3.1% WorldModel.EffectParam(…) apply the material, world, view ect to effect.
1.3% WorldModel.DrawMesh(…) is a slightly modified version of Microsoft.Xna.Framework.Graphics.ModelMesh.Draw()
5.7% WorldModel.Refresh(…) is basically this in pseudo code:
foreach( mesh in this Model) {
GetTheMaterial
ApplyMaterialAndMatrix // with WorldModel.EffectParam(…)
DrawMesh // with WorldModel.DrawMesh(…)
}
5.4% Game_Bank.GetTexture return one of the two texture showed in my previous post with coordinate of the needed area.
