From: htian (htian@withub.com.cn)
Date: Wed 09 May 2001 - 09:44:23 IDT
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
htian@withub.com.cn
------------------------------------------------------------------
Unsubscribe: To: listbot@svgalib.org
Body: unsubscribe linux-svgalib
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST