Can I use svgalib to play video(25frame/second)?
If can, what functions should I use?
I have tried these codes:
time(&t1);
i = 0;
do{
gl_setcontext(virtualscreen1);
gl_copyscreen(physicalscreen);
gl_setcontext(virtualscreen2);
gl_copyscreen(physicalscreen);
++i;
}while((vga_getkey() == 0)&&(i<100));
time(&t2);
vga_setmode(TEXT);
printf("%d %d\n", t2-t1, 200/(t2-t1));
Switching between too virtual screens for 100 times, and
the result is that it cost me 12 seconds.Why it's so slow?
HOT
[EMAIL PROTECTED]
------------------------------------------------------------------
Unsubscribe: To: [EMAIL PROTECTED]
Body: unsubscribe linux-svgalib