Project

General

Profile

Actions

Feature #1033

open

Preload icons

Added by Hammel about 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
Start date:
10 Sep 2023
Due date:
% Done:

20%

Estimated time:
Severity:
02 - High

Description

do_carousel_drawing() loads images as it needs them. This can bog down moving through the list.

To fix this, readDB() should read the image at the time the db is being created. It should also scale the icons.

To help speed up start time, only the first 50 (or 100 or whatever) should be loaded. The rest will be loaded in the background with a g_idle_add() function.

This will simplify musicfe.c:do_carousel_drawing() by removing the image load section and thus speed up processing.

References:
  1. https://www.baeldung.com/linux/gui
  2. https://www.cs.nmsu.edu/~joshagam/archive/cs574/3-dri.html
  3. https://unix.stackexchange.com/a/733390
  4. https://www.khronos.org/opengl/wiki/Platform_specifics:_Linux
  5. https://dri.freedesktop.org/wiki/
  6. https://en.wikipedia.org/wiki/Direct_Rendering_Manager
  7. https://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure
Actions

Also available in: Atom PDF