Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47223

QTextureImage caches old image sources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.5.0
    • Qt3D
    • None
    • Qt 5.5.0 for Windows 32-bit (VS 2010)

      When the source of a QTextureImage is replaced, the old texture seems not to be freed. Therefore the memory consumption of the program rises with every new texture used. However, if a texture image has been used before the memory consumption doesn't rise when using the same texture a second time.

      This behavior lead to problems, if the texture image is updated based on a video stream.

      Enclosed you find an short example which demonstrates the problem. In the example the source of a TextureImage is replaced by a new texture every 2 Seconds. With every replacement of the texture source, the memory consumption of the program rises. After all 10 textures have been used once and are repeated, the memory consumption doesn't rise anymore.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lemire_p Paul Lemire
            fsommer Frank Sommer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes