Develop the background loader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Luce Image Viewer |
Confirmed
|
High
|
Marco Lazzaroni |
Bug Description
At the moment Luce preloads all the images to RAM. This is not a workable solution. The following algorithm runs a "mobile" cache around the current image:
http://
int N = number of image;
int cur = pointer to current image;
bool going_forward = current direction
int max_memory = maximum memory for luce
int cur_memory = current used memory
bool async_load = do async/sync load
flag_loadable_
next=cur;
prev=cur;
for(i=0;i<N/2;i++)
{
async_load=!i;
if(
async_load=1;
if(
if(
if(
break; //usually triggered by a keypress
if(
else
}
Changed in luce: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Marco Lazzaroni (marcolazzaroni) |
milestone: | none → 0.0.3 |
description: | updated |
Changed in luce: | |
milestone: | 0.0.3 → 0.0.4 |
Probably, only the the thumb with i=0 must be synchronous, the others asynchronous