thx, i understand your code very well

now i wrote it like this and works fine to
PANEL* grain_pan_1 =
{
pos_x = 0;
pos_y = 0;
layer = 2.5;
bmap = visor_grain_1.pcx;
//flags = VISIBLE ;
}
PANEL* grain_pan_2 =
{
pos_x = 0;
pos_y = 0;
layer = 2;
bmap = visor_grain_2.pcx;
//flags = VISIBLE ;
}
PANEL* grain_pan_3 =
{
pos_x = 0;
pos_y = 0;
layer = 2.5;
bmap = visor_grain_3.pcx;
//flags = VISIBLE ;
}
PANEL* grain_pan_4 =
{
pos_x = 0;
pos_y = 0;
layer = 2;
bmap = visor_grain_4.pcx;
//flags = VISIBLE ;
}
PANEL* grain_pan_5 =
{
pos_x = 0;
pos_y = 0;
layer = 2.5;
bmap = visor_grain_5.pcx;
//flags = VISIBLE ;
}
PANEL* grain_pan_6 =
{
pos_x = 0;
pos_y = 0;
layer = 2;
bmap = visor_grain_6.pcx;
//flags = VISIBLE ;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
var speed=3;
function grain_startup()
{
set(grain_pan_1,TRANSLUCENT);
set(grain_pan_2,TRANSLUCENT);
set(grain_pan_3,TRANSLUCENT);
set(grain_pan_4,TRANSLUCENT);
set(grain_pan_5,TRANSLUCENT);
set(grain_pan_6,TRANSLUCENT);
while(1)
{
set (grain_pan_1, SHOW); // makes it visible
reset (grain_pan_6, SHOW);
wait(speed);
set (grain_pan_2, SHOW); // makes it invisible
reset (grain_pan_1, SHOW); // makes it visible
wait(speed);
set (grain_pan_3, SHOW);
reset (grain_pan_2, SHOW); // makes it visible
wait(speed);
set (grain_pan_4, SHOW); // makes it invisible
reset (grain_pan_3, SHOW); // makes it visible
wait(speed);
set (grain_pan_5, SHOW);
reset (grain_pan_4, SHOW); // makes it visible
wait(speed);
set (grain_pan_6, SHOW); // makes it invisible
reset (grain_pan_5, SHOW); // makes it visible
wait(speed);
wait(1);
}
}
but one thing left
the framerate goes down to
same when i use sprites before
do u know how can i do that the framerate is stable?
the reason why i use the panel is i was using a sprite before
and the sprites with a solution of 1280x1024 eats my video memory
and someone told me its better u do this with panels, if u want a animated full screen effect, but now the same problem i have with the framerate again
when i start the function the framrate will go down till 40fps
i think about a video effect, but if i use a video i do not have the same
possibility like with a panel
i mean, fade in fade put translucent, bright ect...
do u have a idea?