Results 1 to 5 of 5

Thread: bitblt runing real slow

  1. #1

    Thread Starter
    Member insaneman's Avatar
    Join Date
    Oct 2001
    Posts
    63

    bitblt runing real slow

    i have recently figured out how to use bitblt, and i made a game with it, right now its nothing but a character moving on a screen, this is because it runs REAL slow, if i press down, it takes about 7 seconds to move down. It was runing smoothely yesterday, but when i started it today, it ran real slow. Any help on making it run smoother?

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Are you using TransparentBlt by any chance? It is a huge memory hog. Restart your computer and see if that helps, if not.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    bitblt shouldnt be running slow at all, perhaps you done some bad code design?

    paste your code ( if it aint too big ), someone might be able to see whats wrong

  4. #4

    Thread Starter
    Member insaneman's Avatar
    Join Date
    Oct 2001
    Posts
    63
    the problem is it runs slow on my computer, i tried compiling it to an EXE but that didnt help. On my friends comp it works fine, its just that it worked perfect on my computer 2 days ago...

  5. #5
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    You're probably passing it bad parameters. Just because your image is clipped when it's copied doesn't mean it won't slow down the blit. if you try and copy a 1280x1024 image onto a 640x480 screen, it'll be slower than explicitly copying a 640x480 piece.
    "1 4m 4 1337 #4xz0r!'
    Janus

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