Results 1 to 7 of 7

Thread: SameGame QtQuick2 Demo App is Resource Hungry!?

  1. #1
    Join Date
    Nov 2012
    Posts
    21
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default SameGame QtQuick2 Demo App is Resource Hungry!?

    Hi all,

    I'm evaluating whether we move some of our GUI over to QML/QtQuick2 when we move to Qt 5.0.0. As a part of this I built samegame (C:\Qt\qt-everywhere-opensource-src-5.0.0\qtdeclarative\examples\quick\demos\samegame - Obviously I'm on Windows).

    Running it on my Dell M17x R2 (i7 X920 4 cores @ 2GHz) it takes 12-13% of my CPU (which is an entire hyperthreaded core) and 80% of my GPU (according to GPU-Z). It's not exactly doom3 graphics, so what's so terrible about it? It's doing this even on the menu screen!

    In terms of a demonstration, this has really scared me. Is it that the samegame needs some tweaks (frame rate limiting?)? Maybe QtQuick2 needs some tweaks? We've tried it on 3 computers and it's been a bit of a hog on all 3. Building with MSVC2010 and with -opengl desktop configure flag.

    Can anyone provide some explanation or guidance?

    Regards,
    Simon
    PS. I haven't had a chance to look at whether it's just looping as fast as it can or anything like that - just throwing out the question to see if anyone else has noticed. Either way it's not the best demonstration for a new technology - Look at how resource hungry our new tech is!
    Last edited by gemmell; 23rd January 2013 at 00:17.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    SameGame does some calculations related to the particle engine. However not that much as you report. On my machine (Linux x64 + NVIDIA + 6 core AMD CPU) the game is using practically 0 CPU power in menu and about 15% (where 100% means one core out of six is satitated) while playing. I'd assume there is something wrong with your machine setup (OpenGL drivers maybe?).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2012
    Posts
    21
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    Or windows or compiling with MSVC.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    No, I doubt that's the problem. Windows with MSVC is tier1 platform for Qt5. It has been heavily tested and I'm sure such erroneous behaviour would come out during tests.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2012
    Posts
    21
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    I asked a friend of mine to test it out, see if it was just me or my machine. Below are some emails I received:

    Email1:
    Well I manage to get 16.7% CPU which may mean its using a core and a bit or turbo boost is making the numbers weird and 6% - 20% GPU.

    And even dragging the window round the screen seems jumpy. Does not seem good at all.
    That's was vs2010. I have found that mingw does worse than visual studio in terms of perfomance and threads also don't seem to work correctly with mingw.

    The specs for the computer are:
    i7 2600k @ 4.85ghz
    NVIDIA 570 gtx
    Windows 8 pro 64 bit
    Qt 5 64 bit dynamic


    Email2:
    I just built it at work using the qt5 from the commercial installer and it uses no CPU at all.

    The only difference i can think of is that the installed version uses ANGLE.

    Email3:
    Just tried with vs2012 and its the same as 2010

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    Quote Originally Posted by gemmell View Post
    The only difference i can think of is that the installed version uses ANGLE.
    That would suggest problems with OpenGL drivers.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Nov 2012
    Posts
    21
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SameGame QtQuick2 Demo App is Resource Hungry!?

    Agreed that it sounds like OpenGL drivers, however the performance has been poor on every single computer I've tried it on (currently 4). The machine I'm currently on supports OpenGL 3.3 (according to OpenGl Extension Viewer) and has relatively recent drivers.

    So the question needs to go out to a wider audience:
    Has anyone built Qt for windows with -opengl Desktop and have samegame NOT consume ridiculous amounts of resources?

Similar Threads

  1. Can run every Qwt demo except svgmap
    By MattPhillips in forum Qwt
    Replies: 1
    Last Post: 24th January 2011, 16:27
  2. Game demo
    By QTInfinity in forum Qt-based Software
    Replies: 0
    Last Post: 1st November 2010, 04:56
  3. Customization of Qt Demo
    By nivditha in forum Newbie
    Replies: 7
    Last Post: 26th October 2010, 22:58
  4. QT Demo's Problem
    By photo_tom in forum Installation and Deployment
    Replies: 0
    Last Post: 26th May 2010, 21:44

Tags for this Thread

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.