Jump to content

How to check that GPU memory is released?


canvasman
 Share

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?

Link to comment
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)
Link to comment
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 :) 

Link to comment
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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...