Sign in to follow this  

DX9 Engine: Are this good timing values?

This topic is 3595 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all! I'm working on DirectX9-based render engine for a game. Now, since it looks to me that it's somewhat slow, I'll try to describe it, and hope someone could help me. It basicly has two passes: in the first pass, all renderable items are iterated, clipped against frustum, sorted, prepared, blah, blah... and put into render queue; in the second pass, these items are pop-ed from the render queue, shaders are prepared, and geometry is rendered. No black magic, just good old classics :-) So, here are timings I got: - 1st pass takes around 5% of the game loop - 2nd pass takes around 50% of the game loop Following parts are inside 2nd pass: - D3DXEFFECT.CommitChanges takes around 40% of the 2nd pass (it's called for every object) - D3DXMESH.DrawSubset takes around 33% of the 2nd pass (it's called for every object) - D3DXEFFECT.Begin/End/BeginPass/EndPass takes around 10% of the 2nd pass - Other 17% are spent inside Particle system rendering, D3DXEFFECT.SetFloat(Array) calls, etc. Do this timings sound reasonable? Does something in them looks strange? Any help would be greatly appreciated! Thanks in advance for any comment. Best, Aleksa

Share this post


Link to post
Share on other sites
That doesn't look unreasonable.
Of course the timings you get from just timing the API calls are often unrepresentative of where the time is actually being spent by the GPU. See this link for details.

Share this post


Link to post
Share on other sites

This topic is 3595 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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