OS Graphics

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.
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 »

Well what's mainly with 24 bits is that it needs a lot of small bits of time:
nonstandard address multiplications, misaligned memory accesses, non-dword writes, etc.
And you can't simply pack anything into multimedia registers with 24-bit colors... optimising 32-bits with MMX suddenly becomes trivial.
"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 ]
Edwin
Posts: 12
Joined: Thu Dec 21, 2006 5:19 pm

Post by Edwin »

you can draw horizontal lines in 32-bit and 16/15-bit modes by using a single rep stosd/stosw
in 24-bit modes this doesn't work
Post Reply