-
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?
-
Are you using TransparentBlt by any chance? It is a huge memory hog. Restart your computer and see if that helps, if not.
-
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
-
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...
-
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.