D3D: Cache creation of state object ( and fix crash of partial commit within the wrapper), frame duration with fps