Click to See Complete Forum and Search --> : bitblt runing real slow
insaneman
May 26th, 2002, 01:43 PM
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?
Sastraxi
May 26th, 2002, 03:58 PM
Are you using TransparentBlt by any chance? It is a huge memory hog. Restart your computer and see if that helps, if not.
Geespot
May 27th, 2002, 06:41 AM
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
insaneman
May 27th, 2002, 09:41 AM
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...
Janus
Jun 2nd, 2002, 05:36 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.