Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DirectDraw pixel plotting

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 drago   Members   

150
Like
Likes
Like

Posted 19 August 1999 - 09:27 AM

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


#2 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 19 August 1999 - 03:24 AM

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


#3 FlyFire   Members   

122
Like
Likes
Like

Posted 19 August 1999 - 09:27 AM

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?




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.