The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on July 01, 2005, 01:37:54 PM

Title: How Fast DirectX?
Post by: Farabi on July 01, 2005, 01:37:54 PM
Anybody ever test directX for plot a pixel on the screen? How fast is that? 10 milion loop? How micro second?
Title: Re: How Fast DirectX?
Post by: daydreamer on July 01, 2005, 02:40:15 PM
Quote from: Farabi on July 01, 2005, 01:37:54 PM
Anybody ever test directX for plot a pixel on the screen? How fast is that? 10 milion loop? How micro second?
you talk about ddraw or d3d?, because d3d, you just have an api call for rendering lots of pixels, one for lines, one for polys, one for number of polys shaping a fan, one for a trianglestrip and speed is depending if you have latest gfx card or just a crappy old card

ddraw, first you dont lock/unlock for each pixel, lock/unlock can take millis, but because ddraw is just api calls to open up vram to low-level access, its up to the speed of your own render algos, if you have mul for each pixel, to calculate adress it gets slower than just a loop with add's
and reading vram is very slow, if you for example gonna do blending
Title: Re: How Fast DirectX?
Post by: Farabi on July 01, 2005, 04:56:09 PM
Is reading VRAM as slow as getbitmapbits?
Title: Re: How Fast DirectX?
Post by: daydreamer on July 03, 2005, 07:47:09 AM
Quote from: Farabi on July 01, 2005, 04:56:09 PM
Is reading VRAM as slow as getbitmapbits?
no idea as I used ddraw from the start and never used these windows api functions