-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU spikes when left open #76
Comments
Confirmed on Ubuntu 19.04, with spike of 25% CPU usage and large 80MB RAM usage for small 400kb file. |
Not sure what's causing this. Using Web Inspector's Timeline tool, the only thing that's going on seems to be Epub.js polling for resize every 350ms. If anyone wants to help test this, you can try deleting or commenting out line 4636 in I just tested it and it seems the CPU spikes are gone. |
Commenting out line 4636 most certainly helped. No known side effects, so far. |
Long testing over hours, with regular page flips confirms commenting out line 4636 in epub.js is a fix. |
Yes, delete line 4636 indeed fix the spikes. One of the things I've noticed is that dictionary lookup sometimes not working, can workaround by maximize foliate (not sure it was there before deleting line 4636). |
Hi! Thanks for foliate.
Steps to reproduce the issue:
![Screenshot_20190617_120546](https://user-images.githubusercontent.com/50333987/59579934-ac468700-90be-11e9-97bc-520fc18a2de2.png)
Open a ebook, scroll some page then left it open for ~1h
Version: 1.2 and git master
OS: Fedora 30
The text was updated successfully, but these errors were encountered: