I found out how to use BitBLT command, but just heard that there is a better way to do same thing using DirectX, Can anyone tell me how exactly do I do that? I have sprite sheet, from which I have to exctract images.
If there is DelphiX way please tell me how to use the command, and explain variables.
Thank You.


Reply With Quote



even better not even using a DXImageList, but simply an array of TDirectDrawSurface objects. The DXImageList is yet another computer which both uses memory and your program has to go through (another layer to get to the core if you like) so it slows your code down. If I'm not mistaken the Find function iterates through all the images until the image with that exact name is found, so you'll be entering a loop which uses a lot of cpu power (100%) so all these things slow you down. I have found that a large "tiled"-bitmap (one bitmap which contains all your graphics) could even make the your application take ages to start up, a long time ago I tried adding a 5 MB bitmap to the DXImageList and the application needed about 1-2 minutes to start up.