Sign in to follow this  
DesignerX

VertexBuffer9 memory leak problem

Recommended Posts

I have created a vertex buffer with a certain size, locked it, filled it with vertices data and than unlocked it. This process took me approximately 8k (using the TaskManager tool). Now when I release the vertex buffer , instead of freeing the memory used it adds (!) 4k of memory usage. why is that ? is the TaskManager a good tool to use for this analysis ? thx.

Share this post


Link to post
Share on other sites
Quote:
Original post by DesignerX
is the TaskManager a good tool to use for this analysis ?
Task manager is probably the worst way to profile memory usage. Just ignore what it says completely.
For a start, it doesn't profile driver or video memory.

Share this post


Link to post
Share on other sites
Quote:
Original post by DesignerX
I have created a vertex buffer with a certain size, locked it, filled it with vertices data and than unlocked it. This process took me approximately 8k (using the TaskManager tool). Now when I release the vertex buffer , instead of freeing the memory used it adds (!) 4k of memory usage.

why is that ? is the TaskManager a good tool to use for this analysis ?

thx.


I hope your calling SafeRelease on that and not Free or delete.


Also one way to check if you really leak is
programs->direct x sdk(some version) -> utilities -> control panel

then switch output level to UBER HIGH
and switch to "use debug version"

then compile
run
exit
check output window

youll find if you leak any memory when you get spammed full of errors saying 0x0023523t not freed or something of a allike then at the bottom d3d leaked x bytes (this is also one way to find out all memory you ever use rofl ;) )

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