Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2023, 08:38 AM   #1
Ugur
Member
Ugur began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: Kindle
Opening Epub book takes 30s on external display

I'm currently using Calibre on a MacBook Pro 2018 with an i5 processor, 16GB of RAM, and 1TB of storage. However, every time I open an Epub book, it takes about 20-30 seconds to fully load.

Apparently my external monitor (plugged via USB-C) was responsible for the slow down. Unplugging the external monitor (DELL S2722QC) will decrease startup time to 3 seconds!

Plugging in the external monitor and decreasing the resolution of it will decrease the load time to 7 seconds (down from 30s). Still not as fast as on my Macbook screen (3 seconds).

I am guessing that the viewer reads the resolution of the screen and calculates the page size for every page to be opened?

Anyone can point me to a solution?

Thank you very much!
Ugur is offline   Reply With Quote
Old 03-28-2023, 10:52 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That will be some issue between chromium (which is what the viewer uses to render HTML) and the GPU drivers on your system. You can try turning off hardware acceleration which might help as described here: https://doc.qt.io/qt-6/qtwebengine-debugging.html
kovidgoyal is offline   Reply With Quote
Advert
Old 03-28-2023, 12:16 PM   #3
Ugur
Member
Ugur began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
You can try turning off hardware acceleration ... as described here: https://doc.qt.io/qt-6/qtwebengine-debugging.html
There it says `--disable-gpu`. Do I pass this to `calibre` from the command line?
Ugur is offline   Reply With Quote
Old 03-28-2023, 01:18 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Ugur View Post
There it says `--disable-gpu`. Do I pass this to `calibre` from the command line?
Yes. Or the Target in the shortcuts that launches Calibre or Viewer (any shortcuts the commanded line is used )
theducks is offline   Reply With Quote
Old 03-28-2023, 09:53 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Ugur View Post
There it says `--disable-gpu`. Do I pass this to `calibre` from the command line?
No you set it in the environment variable described on that page.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-29-2023, 02:21 AM   #6
Ugur
Member
Ugur began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: Kindle
Solved!

Thank you very much Kovid,

with the new new environment variables file my problem is fixed!

Here's my new environment variables file:

CALIBRE_TEMP_DIR=~/.calibre/temp
CALIBRE_CACHE_DIRECTORY=~/.calibre/cache
QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu"
Ugur is offline   Reply With Quote
Old 03-29-2023, 02:24 AM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kovidgoyal View Post
No you set it in the environment variable described on that page.
theducks is offline   Reply With Quote
Old 03-30-2023, 05:41 AM   #8
Ugur
Member
Ugur began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: Kindle
The solution worked only a day or so. The problem is back. Several restarts did not help.
Ugur is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre crashes when opening ebooks with external viewer Chemist1 Library Management 13 03-01-2020 01:35 PM
Having difficulty opening EPUB file with E-book Viewer directly swampwiz Library Management 13 09-08-2014 12:58 PM
Opening EPUBs in Sigil takes ages [Windows] Wasserpulle Sigil 4 12-13-2013 01:05 PM
Pixelated font in e-book reader when opening EPUB format mst Recipes 7 02-13-2011 10:09 PM
EPUB Reader: Opening a big file (27 MB) takes 4.5 minutes on Firefox zdavatz EPUBReader 5 02-19-2010 02:36 AM


All times are GMT -4. The time now is 05:38 PM.


MobileRead.com is a privately owned, operated and funded community.