Sign in to follow this  
ewinter

How to check that GPU memory is released?

Recommended Posts

After resetting applications state and destroy all the textures, can I see anywhere if there is still some textures left in the GPU memory or confirm that the GPU's memory has been released and there is no memory leaks?

In task manager I check dedicated GPU memory. After adding some textures and resetting application state, destroying all textures it still wont go back to where it was at the beginning.

So where and what values should I look at about GPU's memory status?

Also does every texture loaded with PIXI's loader reserve GPU memory even if its not present in scene anymore?

Share this post


Link to post
Share on other sites

is this can maybe help you ?

https://chromium.googlesource.com/chromium/src/+/lkgr/docs/memory-infra/probe-gpu.md

Look at the size column for total GPU memory

and for awser you no this will maybe depend of your projet.
On my side somethime i need do it manualy after loader my json.

take a look with this and also pixi prepare 

$app.renderer.bindTexture(texture)
or 
$app.renderer.bindTexture(baseTexture)

Share this post


Link to post
Share on other sites
1 hour ago, jonforum said:

is this can maybe help you ?

https://chromium.googlesource.com/chromium/src/+/lkgr/docs/memory-infra/probe-gpu.md

Look at the size column for total GPU memory

and for awser you no this will maybe depend of your projet.
On my side somethime i need do it manualy after loader my json.

take a look with this and also pixi prepare 

$app.renderer.bindTexture(texture)
or 
$app.renderer.bindTexture(baseTexture)

Wait what is the bindTexture? I can't find any documentation.

Thanks for the answer anyway :) 

Share this post


Link to post
Share on other sites
14 minutes ago, ivan.popelyshev said:

You can manually iterate through "renderer.textureManager.managedTextures" and see whats alive, sum all by area (width * height), 4 bytes per pixel. In v5 its in "renderer.texture.managedTextures" or something like that. maybe "_managedTextures".

Okay, so in that object I can see everything which has some GPU memory reserved currently? Also textures which I get after loader is done, do they reserve the GPU all the time until they are destroyed?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.