Comments (13)
@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.
Do you experience the same CPU usage with the flatpak?
from nyxt.
I can't reproduce. What happens when you launch via nyxt --failsafe
?
from nyxt.
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.
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.
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.
What happens when you launch as
nyxt --no-config --no-auto-config
?
Again around 40 % CPU usage.
from nyxt.
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.
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.
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.
OK, after opening some buffers, it still looks good. I'll try again with more buffers and compare with other browsers.
from nyxt.
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.
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)
- Restart prompting -- When you just need to start over HOT 6
- duplicate suggestions in DESCRIBE SLOT HOT 2
- Freezes when entering URL HOT 5
- special case UI for mode specific commands HOT 6
- `switch-buffer` UI may be misleading HOT 15
- execute-command: Suggested Lisp expression without brackets until typed completely HOT 1
- Nyxt opens as a blank window HOT 1
- `bookmark-url` is broken HOT 2
- `common-settings` bug
- `common-settings` improvements HOT 6
- Update web engine to support modern websites HOT 3
- Error using KeePassXC integration (couldn't execute "clip") HOT 8
- Unable to run Nyxt HOT 10
- `edit-with-external-editor` is broken HOT 1
- Unable to use `edit-with-external-editor`with flatpak apps HOT 1
- `blocker-mode` seemingly blocks nothing HOT 5
- Guix distribution: Web process terminated due to WebKitJavascriptError, Code: 601 HOT 1
- Gemini:// Socket malfunction HOT 1
- Unable to apply multiple default modes and two usability questions HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nyxt.