Giter VIP home page Giter VIP logo

Comments (7)

NischalDawadi avatar NischalDawadi commented on September 21, 2024 1

I just disabled save on quit in mpv.

from tomato.c.

CarlosCraveiro avatar CarlosCraveiro commented on September 21, 2024

Since the problem is specifically related to audio notifications, perhaps it is something related to the MPV. It might be worth testing whether it's working properly.

Maybe try something like:

$ mpv <some_video_or_audio_file>

and see if the audio is outputting as it should.

from tomato.c.

CarlosCraveiro avatar CarlosCraveiro commented on September 21, 2024

In fact, the test can be done with tomato's own audio files, which in your distro I believe are in /usr/local/share/tomato/sounds.

Like:

$ mpv tomato/sounds/dfltnotify.mp3

from tomato.c.

NischalDawadi avatar NischalDawadi commented on September 21, 2024

there was no problem with mpv audio.
it was because of resume playback.. How to disable it for this cause ...it is handy while watching series and movies.

from tomato.c.

CarlosCraveiro avatar CarlosCraveiro commented on September 21, 2024

Ahh, fair enough..., but did you manage to solve this part of the problem then?

from tomato.c.

CarlosCraveiro avatar CarlosCraveiro commented on September 21, 2024

As for excessive CPU usage, now that you mention it, I observed the same on my machine. I tried running some profiling tools like linux-perf to see exactly what could be causing this, but I couldn't identify anything conclusive.
Screenshot-2024-05-19_11-24-11
In the screenshot you can see that the execution peaks of each tomatonoise processes go to around 50% CPU usage.

I currently tend to believe that this stems from the "pull-up loop" that exists within the tomatonoise to communicate with the tomato. If that's right (which I'm not sure), the solution would be to change how this is done, perhaps Unix Sockets could be and option to optimize the communication between processes...

But in this case, as I believe this is a problem with the way the code is structure (problem with the software architecture), an optimization regarding this would need to involve a discussion with more contributors.

from tomato.c.

gabrielzschmitz avatar gabrielzschmitz commented on September 21, 2024

I'm currently rewriting the app from the ground up, so the app performance should be ignored for now. But about the mpv error, did you manage to fix it?

from tomato.c.

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.