Giter Site home page Giter Site logo

Comments (13)

aadcg avatar aadcg commented on August 19, 2024 1

@MaxGyver83, I started Nyxt with the file you have attached. Even though I have only one web buffer open, the CPU usage of the Nyxt process is started at about 20% and it seems to slowly decrease as time goes by (went down to 8% in ~6 minutes).

I don't think we have something meaningful or crystal clear to address here.

from nyxt.

jmercouris avatar jmercouris commented on August 19, 2024

Do you experience the same CPU usage with the flatpak?

from nyxt.

aadcg avatar aadcg commented on August 19, 2024

I can't reproduce. What happens when you launch via nyxt --failsafe?

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

nyxt --failsafe uses close to 0 % CPU. Maybe because it doesn't restore any buffers? I tried to open github.com but after typing github in the "Open URL" prompt, Nyxt froze (version 3.8.0 now). The last output in the command line is:

(process:2): GLib-GIO-WARNING **: 23:06:56.088: Socket check failed

** (process:2): WARNING **: 23:06:56.354: Error writing credentials to socket: Fehler beim Senden der Nachricht: Datenübergabe unterbrochen (broken pipe)

(I'll try to reproduce this with an English output.)

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

Do you experience the same CPU usage with the flatpak?

I'm going to install flatpak and try again (today or tomorrow).

Update: I need to clean up my partition first. It's almost full. So I won't test this today anymore.

from nyxt.

aadcg avatar aadcg commented on August 19, 2024

nyxt --failsafe uses close to 0 % CPU. Maybe because it doesn't restore any buffers?

What happens when you launch as nyxt --no-config --no-auto-config?

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

What happens when you launch as nyxt --no-config --no-auto-config?

Again around 40 % CPU usage.

from nyxt.

aadcg avatar aadcg commented on August 19, 2024

Again around 40 % CPU usage.

This seems to suggest that it is related to loading either /home/max/.local/share/nyxt/history/default.lisp or /home/max/.local/share/nyxt/auto-rules.lisp. Can you backup these files (by copying them to another location) and start Nyxt by keeping one of those and then the other?

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

But now I have closed 10 to 15 buffers. Now the CPU usage is close to 0% when Nyxt is in the background, and 10 to 30 % when I focus it and do something like switching to another buffer.

from nyxt.

aadcg avatar aadcg commented on August 19, 2024

If it is related to the number of open buffers, then you can try to start Nyxt via nyxt --failsafe and then open 15 buffers and check the CPU usage.

Then the question is whether other browsers based on WebKitGTK suffer from the same fate. Notice that we're working on #2989.

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

OK, after opening some buffers, it still looks good. I'll try again with more buffers and compare with other browsers.

from nyxt.

jmercouris avatar jmercouris commented on August 19, 2024

Sometimes specific websites can use a TON of CPU, not sure why that is. I guess they are running some crazy javascript loop. Would be interesting if we could see the CPU usage for each buffer to allow the user to kill the resource heavy buffers in the kill-buffer prompt.

from nyxt.

MaxGyver83 avatar MaxGyver83 commented on August 19, 2024

Today, I was back at 40 % CPU usage. Then I restarted Nyxt, and the CPU usage was only at 20 - 30%. Next, I tried again with the failsafe flag. But when I start without any buffers, CPU usage is minimal. I tried using --failsafe but still loading the buffers I had open before:

./nyxt --failsafe --load ~/.local/share/nyxt/history/default.lisp

But this seems not to be the right way. I ended up with only one empty buffer.

In case you want to try to reproduce with my buffer list, here it is:
default.txt
(Rename to default.lisp.)

from nyxt.

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.