Giter Site home page Giter Site logo

Comments (12)

mmetak avatar mmetak commented on July 17, 2024 1

Looks like it's fixed now. ;-)

from babe-qt.

milohr avatar milohr commented on July 17, 2024

i'm not sure why that happens. at startup it does several things: it loads all the views content from the db and sets the artwork it also loads some watcher (QFileSystemWatcher)... how to debug this? how do you check how much % of cpus is using?

from babe-qt.

milohr avatar milohr commented on July 17, 2024

i just checked with kde system monitor and it appears to be from 17% to 24% maximum of cpu. so this might be releated to QtMultimedia/QMediaPlayer

from babe-qt.

mmetak avatar mmetak commented on July 17, 2024

With htop. That's just cold launch with no changes whatsoever.

from babe-qt.

milohr avatar milohr commented on July 17, 2024

going to run some checks but i strongly believe this is something outside my code, cause when using https://github.com/andreisergiu98/music-player-qt5 as a based in the very beginning of my experiments with qt5, that app was -and still -using the same amount of cpu and that player doesn't do much.

from babe-qt.

J4nsen avatar J4nsen commented on July 17, 2024

Just used the Arch AUR and I get 85% CPU usage on one core.

from babe-qt.

milohr avatar milohr commented on July 17, 2024

tonight i will run some testes to find out why is it using so much cpu.

from babe-qt.

milohr avatar milohr commented on July 17, 2024

i fixed it. it now uses around from 2% to 5%, although when on the albums or artists view the cpu usage increases up to 17 % - 20%
I'm not sure why that is right now.
For now i'm closing this issue, if you find any more abnormal behaviors please don't doubt in report again. thank you :) if you would test my recent changes would be great!

from babe-qt.

mmetak avatar mmetak commented on July 17, 2024

Yes, you're right, when on the albums or artists view the cpu increases.

from babe-qt.

milohr avatar milohr commented on July 17, 2024

my first though was that the paintEvent method override i made in the Album class was causing it but i removed it and still the cpu went that high. maybe is the way i'm creating the object for each album or it might be the image size storage as the qpixmap... i'm not sure anyway right now, i will continue to find a solution. can you confirm please that the cpu usage decreased in the other views besides the two already mentioned?

from babe-qt.

mmetak avatar mmetak commented on July 17, 2024

Yes, I can confirm.

from babe-qt.

milohr avatar milohr commented on July 17, 2024

@mmetak just so you know i've updated master with a fix for the album/artists view high cpu usage. if you could pls confirm when you have the time that the fixes worked for you too woudl be great.

from babe-qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.