|
-
Feb 4th, 2012, 04:36 PM
#1
Thread Starter
PowerPoster
[RESOLVED] [VB6-API]- the pointers are more faster than DIB's?
manipulations the images by pixels, what is more faster:
i know what is more faster:
-pset and point are slow;
-setpixel and getpixel are more faster;
-setpixelv and getpixel are more faster;
-setpixel and getpixel using hdc variables(instead pictures directly) are more faster;
-DIB's are more faster.
but pointers??? are more faster than DIB's?
-
Feb 4th, 2012, 07:52 PM
#2
Re: [VB6-API]- the pointers are more faster than DIB's?
I tried telling you before about direct memory addressing which is by far the fastest way to draw pixels. Its so fast you can do a couple for loops to draw each pixel 640x480 and itll still be 60 fps. i once shown you the code to do this. Only in that example i used directx to obtain the pointer to the video memory as well as for flipping the backbuffer to the screen. Also I used a safe array, and a simple array declared as a Long (or Integer) was used to draw the pixel. I used to be just like you trying to find the fastest way to draw but you are only gonna get so far in VB6. If you truely want the ultimate speed, you could try learning C++.
-
Feb 5th, 2012, 07:41 AM
#3
Thread Starter
PowerPoster
Re: [VB6-API]- the pointers are more faster than DIB's?
 Originally Posted by Jacob Roman
I tried telling you before about direct memory addressing which is by far the fastest way to draw pixels. Its so fast you can do a couple for loops to draw each pixel 640x480 and itll still be 60 fps. i once shown you the code to do this. Only in that example i used directx to obtain the pointer to the video memory as well as for flipping the backbuffer to the screen. Also I used a safe array, and a simple array declared as a Long (or Integer) was used to draw the pixel. I used to be just like you trying to find the fastest way to draw but you are only gonna get so far in VB6. If you truely want the ultimate speed, you could try learning C++.
thanks
note: i'm playing with your toturials(like move the player)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|