Sign in to follow this  
ryt

Direct3D9 Debug Info

Recommended Posts

I got this messages of debug info: Direct3D9: (WARN) :Vertexbuffer created with POOL_DEFAULT but WRITEONLY not set. Performance penalty could be severe. Direct3D9: (WARN) :Indexbuffer created with POOL_DEFAULT but WRITEONLY not set. Performance penalty could be severe. Direct3D9: (INFO) :Failed to create driver indexbuffer Direct3D9: (WARN) :Ignoring redundant SetRenderState - 9 How can I find more info abaut them, what they mean? When I put D3DUSAGE_WRITEONLY to vertex buffer and index buffer index buffer is created ok, why that?

Share this post


Link to post
Share on other sites
Quote:
How can I find more info abaut them, what they mean?


Look up D3DPOOL in the SDK docs.

From the SDK:
"D3DPOOL_DEFAULT
Resources are placed in the memory pool most appropriate for the set of usages requested for the given resource. This is usually video memory,..."

Reading from video memory is expensive. Thus the warning.

The error regarding the failure to create the indexbuffer probably means that your current graphics hardware (or driver) doesn't support index buffers in graphics card memory.

Share this post


Link to post
Share on other sites
Quote:
Original post by Buckeye
The error regarding the failure to create the indexbuffer probably means that your current graphics hardware (or driver) doesn't support index buffers in graphics card memory.
To be precise, it means the driver isn't a DX9 (I think it's DX9 anyway) driver, and index buffers that you try to put in the default pool will be emulated in system memory.

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