Sign in to follow this  

[C# + MDX] Nprof analysis result and performance

Recommended Posts

Here is the Nprof Profiler result :
Total with children : 35.62%
Microsoft.DirectX.Direct3D.Device::Present()                         		00.02%        
	Microsoft.DirectX.Direct3D.Device::PresentInternal                   		35.52%

Total with children times : 27.84%
void Microsoft.DirectX.GraphicsStream::Write()                       		00.74%         
   static int32 Microsoft.DirectX.DXHelp::GetObjectSize(Object)         		10.47%
   static void Microsoft.DirectX.DXHelp::CopyObjectDataToPointer(Object,int)		16.52%

It means that more the 50% of my engine process time is used to do device.Present() and GraphicStream.Write() fonction.
Is it normal ?

The graphicStream is created with : 

vertexBuffer = new VertexBuffer(

graphicStream = vertexBuffer.lock(0,0,LockFlags.Discard)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this