Results 1 to 2 of 2

Thread: Memory Consumption (Qt with DirectX)

  1. #1
    Join Date
    Apr 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Memory Consumption (Qt with DirectX)

    Just a question.

    I have Qt application that uses a custom widget that uses functions in an external DLL to create and render a DirectX 11 device on the application. When I run the app I see in Task Manager that it uses from 17,000 K to 22,000 K. Isn't this a bit high for an app that doesn't really do anything besides render UI and a d3d device?

    The memory starts at 17,000 K, when I maximize it, it grows to 22,000 K but it never goes back to 17,000 K, even if I restore/minimize.

    It also uses more memory if I show a dialog but the memory stays even after I hide the dialog. How can I destroy it and release the memory?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Memory Consumption (Qt with DirectX)

    That figure is the "working set" and measures the memory that has been "recently" used. This is not the same thing as "currently in use". When you use C++ delete the memory is immediately released for reuse, but the memory typically remains in your working set for some OS-defined period on the assumption that your program will request more memory allocations in the near future.

    http://stackoverflow.com/questions/1...p-really-using

Similar Threads

  1. QString memory consumption
    By sicker in forum Newbie
    Replies: 1
    Last Post: 4th November 2011, 16:23
  2. QTreeView memory consumption
    By eyeofhell in forum Qt Programming
    Replies: 6
    Last Post: 19th November 2010, 01:04
  3. QSqlQueryModel and memory consumption
    By lunatic fringe in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2010, 11:09
  4. QTableView memory consumption
    By LordQt in forum Qt Programming
    Replies: 7
    Last Post: 9th December 2008, 16:51
  5. Pixmap memory consumption
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 29th November 2007, 15:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.