Re: problem with first use of a copied pipeline layer texture not freeing, subsequent textures do free
- From: Reza Ghassemi <reza robin1 gmail com>
- To: Lionel Landwerlin <llandwerlin gmail com>
- Cc: clutter-list gnome org
- Subject: Re: problem with first use of a copied pipeline layer texture not freeing, subsequent textures do free
- Date: Fri, 22 Apr 2016 12:13:44 -0700
Hi Lionel,
I understand your point, but I'm seeing the video memory (using TechPowerUp GPU-Z to monitor it) go up when I display a full screen texture, not go down when I delete it, then display a small postage stamp sized texture and memory does not go down. Video memory does not go down after that strangely until I display several other big textures, then delete them all. To keep memory down due to what looks like a bug to me I display a dummy 1x1 texture at the start of the program and delete it, then start the test. Also on destruction of my actors, I set the pipeline layer 0 texture to NULL before unreffing the pipeline. As you can see below the memory usage is more level, even if a little higher at some points. I'm not sure why memory stays so flat with my hack but it seems there is still some ref holding going on but not on that first allocated texture. It still seems that something is not quite right or at the very least it is quite confusing.
Here's a running case:
From a baseline memory of "start"
display full HD screen texture: mem: start + 8Mb
delete the texture: mem: start + 8Mb
display same full screen texture: mem: start + 16Mb
delete the texture: mem: start + 16Mb
display a small texture: mem: start + 6Mb
delete the small texture mem: start + 6Mb
display same full screen texture: mem: start + 6Mb
delete full screen texture: mem: start + 6Mb
display 3 1kx1k new textures: mem: start + 18Mb
delete 3 textures: mem: start + 10Mb
display a small texture mem: start + 2Mb
delete the small texture: mem: start + 2Mb
With my hacks:
display full HD screen texture: mem: start + 8Mb
delete the texture: mem: start + 8Mb
display same full screen texture: mem: start + 8Mb
delete the texture: mem: start + 8Mb
display a small texture: mem: start + 8Mb
delete the small texture mem: start + 8Mb
display same full screen texture: mem: start + 8Mb
delete full screen texture: mem: start + 8Mb
display 3 1kx1k new textures: mem: start + 20Mb
delete 3 textures: mem: start + 2Mb
display a small texture mem: start + 2Mb
delete the small texture mem: start + 2Mb
Reza
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]