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)
- secondary keybinding not displaying in internal page *help-bindings* HOT 1
- Website partially obscured when zoom factor is higher than 1 HOT 4
- `repeat-mode` broken
- Some slots are methods in disguise and `funcall*`
- Simplify `theme` library
- Replace `iolib` by SBCL's primitives
- Idle inhibition when watching videos HOT 3
- Replace `extended-command-source` by separate command akin to `eval-expression` HOT 2
- `binding`, `keybinding` and `keyboard-shortcut`
- Methods defined within `define-ffi-generic` shouldn't inherit from `t`
- Delete `override-map` logic
- Google SSO for Websites HOT 2
- Cannot Load Invader Extension HOT 3
- Odd OOP idiom (parent/child relationship)
- `ffi` focus methods
- Delete `ffi-buffer-make` and `ffi-window-make`
- `ffi-buffer-cookie-policy` and Electron
- Simplify URL display logic
- Fix `global-history` test HOT 1
- nyxt crashes when there are too many tabs HOT 1
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.