DirectDraw pixel plotting

Started by
1 comment, last by drago 24 years, 8 months ago
Drago -

I'm assumming you want to plot more then one pixel, right? Calling the Lock/UnLock pair yourself and plotting all needed pixels between this single pair of lock statements will be fastest.

DirectDraw will call Lock/UnLock internally so if you plot each pixel with Blt/BltFast you will incure the overhead of the lock statements on each pixel.

John Hebert

Advertisement
Is it faster to pixelplot using a lock/unlock approach, or using the DDBLT_FILLCOLOR approach for a point? I would assume that the DDBLT_FILLCOLOR approach would be faster if supported by the HAL, but what about the HEL?

------------------
Drago

osu!
My question is off topic and i really dubt in DirectX programming, but i'm interested for what surface needed to be locked or unlocked?

This topic is closed to new replies.

Advertisement