PCI-Express Source Code + Questions about fast drawing

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

PCI-Express Source Code + Questions about fast drawing

Post by Jeko »

I need some source code about PCI-Express. Have you anything?

I change the video mode to 800x600x32 bits, but if I use 800x600x16 bits is it very faster?

In your opinion (for performance) is better 32 bits, 16 bits or 8 bits?
I think 8 bits, but I think its quality is too much low.
I need also some informations about drawing optimizations.
Sorry for the bad english and thank you for all!
turtling
Posts: 8
Joined: Sun Mar 11, 2007 2:01 pm

Post by turtling »

My laptop is more than 2 times faster in 16 bits than 32 bits. It's a radeon xpress 200m. I think the problem has to do with the low clock frequency ( 333mhz) and that the card is shared memory with the main board.
If it's dedicated vram, 32 bits or 16 bits shouldn't make a big difference probably? But it sure do in a shared memory environment. :cry:
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

the main problem is that of bandwidth: writing the same amount of pixels in 32 bit mode costs twice the amount of memory bandwidth as 16 bits (and 4x that of 8 bits).

On the other hand, doing calculations on packed 16-bit colors is more processor-intensive because it does not match a native processor data type, whereas 32-bit colors fit nicely into multimedia registers. What makes you suffer most depends on how you do things, but in general using 16 bit colors is less than 2x as fast as 32-bit modes.

If you want performance, use hardware accelleration (intels & voodoo's will do) :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Post by Jeko »

Combuster wrote:If you want performance, use hardware accelleration (intels & voodoo's will do) :wink:
For this I need to write a lot of drivers.
I want to optimize performance with functions that works on the framebuffer.
Post Reply