Results 1 to 3 of 3

Thread: [RESOLVED] [VB6-API]- the pointers are more faster than DIB's?

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Resolved [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?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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++.

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [VB6-API]- the pointers are more faster than DIB's?

    Quote Originally Posted by Jacob Roman View Post
    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)
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width