Slow loading time

Starting Anki takes at least 5 seconds to load with and without add-ons.

Version ⁨2.1.66 (70506aeb)⁩
Python 3.9.15 Qt 6.5.2 PyQt 6.5.2

Win 11, AMD Ryzen 7, 8 GB RAM, SSD

Edit: Downgraded to 2.1.65 because of a bug in 2.1.66 where pressing space to show answer wouldn’t show me the answer. Slow loading time in 2.1.65 still persist.

Is your issue similar to this Slow Loading Time with No Loading Indicator?

Maybe you’ll have more luck with the Qt5 version: https://github.com/ankitects/anki/releases/download/2.1.65/anki-2.1.65-windows-qt5.exe

I don’t think so since I have no UI problem in 2.1.65 Qt 6 and the loading times for me are not as bad as in Slow Loading Time with No Loading Indicator.

I still tried to install 2.1.65 Qt 5 after your suggestion but Anki wouldn’t even start in that version, so I had to revert to Qt 6.

I suggest seeing if this is a video driver issue by trying the solutions here: ⁨2.1.66 - Card Not Revealing - #4 by dae

set QSG_RHI_BACKEND=opengl
anki

Anki starting…
Initial setup…
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
qt.scenegraph.general: Using QRhi with backend OpenGL
Graphics API debug/validation layers: 0
QRhi profiling and debug markers: 0
Shader/pipeline cache collection: 0
Preparing to run…
Qt info:

GL Type: disabled
Surface Type: OpenGL
Surface Profile: NoProfile
Surface Version: 3.0
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: yes
Using Multithreaded OpenGL: no

Init Parameters:

  • application-name Anki
  • browser-subprocess-path C:\Users\admin\AppData\Local\Programs\Anki\lib\PyQt6\Qt6\bin\QtWebEngineProcess.exe
  • disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  • disable-gpu
  • disable-speech-api
  • enable-features NetworkServiceInProcess,TracingServiceInProcess
  • enable-threaded-compositing
  • in-process-gpu
  • use-gl disabled

Starting main loop…
Qt debug: Created OpenGL context QSurfaceFormat(version 3.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile)
Qt debug: OpenGL VENDOR: VMware, Inc. RENDERER: Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits) VERSION: 3.0 Mesa 11.2.2
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512

set QSG_RHI_BACKEND=vulkan
anki

Anki starting…
Initial setup…
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
qt.scenegraph.general: Using QRhi with backend OpenGL
Graphics API debug/validation layers: 0
QRhi profiling and debug markers: 0
Shader/pipeline cache collection: 0
Preparing to run…
Qt info:

GL Type: disabled
Surface Type: OpenGL
Surface Profile: NoProfile
Surface Version: 3.0
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: yes
Using Multithreaded OpenGL: no

Init Parameters:

  • application-name Anki
  • browser-subprocess-path C:\Users\admin\AppData\Local\Programs\Anki\lib\PyQt6\Qt6\bin\QtWebEngineProcess.exe
  • disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  • disable-gpu
  • disable-speech-api
  • enable-features NetworkServiceInProcess,TracingServiceInProcess
  • enable-threaded-compositing
  • in-process-gpu
  • use-gl disabled

Starting main loop…
Qt debug: Created OpenGL context QSurfaceFormat(version 3.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile)
Qt debug: OpenGL VENDOR: VMware, Inc. RENDERER: Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits) VERSION: 3.0 Mesa 11.2.2
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512

set QT_OPENGL=software
anki

Anki starting…
Initial setup…
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
qt.scenegraph.general: Using QRhi with backend OpenGL
Graphics API debug/validation layers: 0
QRhi profiling and debug markers: 0
Shader/pipeline cache collection: 0
Preparing to run…
Qt info:

GL Type: disabled
Surface Type: OpenGL
Surface Profile: NoProfile
Surface Version: 3.0
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: yes
Using Multithreaded OpenGL: no

Init Parameters:

  • application-name Anki
  • browser-subprocess-path C:\Users\admin\AppData\Local\Programs\Anki\lib\PyQt6\Qt6\bin\QtWebEngineProcess.exe
  • disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  • disable-gpu
  • disable-speech-api
  • enable-features NetworkServiceInProcess,TracingServiceInProcess
  • enable-threaded-compositing
  • in-process-gpu
  • use-gl disabled

Starting main loop…
Qt debug: Created OpenGL context QSurfaceFormat(version 3.0, options QFlagsQSurfaceFormat::FormatOption(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile)
Qt debug: OpenGL VENDOR: VMware, Inc. RENDERER: Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits) VERSION: 3.0 Mesa 11.2.2
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512
Qt debug: rhi texture atlas dimensions: 512x512

Looks like it’s not a driver issue then. Actually, a 5-second loading time is normal (My Anki loads in about the same time with a large collection)

Maybe adding an exception to your antivirus will help?

The 5s loading time is more of a minimum; sometimes it takes significantly more (with no other window open or needing to sync something or something else that might be the cause). If I remember correctly I also had the problem with a small collection. Also I don’t have an extra antivirus installed.
But I can live with those loading times and still thanks for the help.

My other concern is that in

Version ⁨2.1.66 (70506aeb)⁩
Python 3.9.15 Qt 6.5.2 PyQt 6.5.2

when I press space for “Show Answer” I get almost always a mix of the Study Overview and the learning steps buttons or sometimes the answer of the card before. It happens somewhat irregularly and pressing “Show Answer” with the mouse seems to not have the problem.
I tried it with and without add-ons, with and without some options enabled like minimalist view but it didn’t seem to make a difference. I also tried this in the normal and beta version but had the same problem, going back to 2.1.65 fixed the problem.

If you’re on Windows, Windows Defender runs by default, so you’d have an antivirus running unless you explicitly disabled it.

Your other issue sounds like a video driver issue. The next Anki release will let you customize the driver in the preferences screen.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.