On Sun, 23 Feb 2003, Shamir Adi wrote: > I want to code graphics under Linux and I'm searching > for the right way to do that. > > I don't need any user interface but I do need it to be > fast with 24bit of color deapth, and resolution of at > least 640x480 (preferable 1024x768). > > I'm current familiar with Xlib (which is not good > because it is slow) and svgalib (which is ok for me).
Talking about "Graphics speed" is meaningless. The speed depends on what you actually do: If you want to draw random pixels, svgalib is probably faster, since it lets you write directly to video memory without context switch, or even function call overhead. If you render images to memory and want to copy them to video memory, both svgalib and X will do it in the same speed (video ram or PCI/AGP is the bottleneck). X might have the advantage here of doing the copy with DMA, allowing the CPU to do something else meanwhile. Svgalib is usually easier to program, but again, it depends on what you want to do. In addition to Xlib and svgalib, you might also check DGA, GGI, Allegro, directfb. -- Matan Ziv-Av. [EMAIL PROTECTED] ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
