Hi There,
I tried to implement a scrolling image in GD. It works fine however you can see the tearing when it scrolls.
Here are the details :
1. I load a 1024x700 image at gapisurface.
2. Using backbuffer I tried to scroll it.
3. My targer framerate is 40.
Johan, are there any work around to make the scrolling smooth? I dont need tiles since this is the only image i need. Thanks.
I tried to implement a scrolling image in GD. It works fine however you can see the tearing when it scrolls.
Here are the details :
1. I load a 1024x700 image at gapisurface.
2. Using backbuffer I tried to scroll it.
3. My targer framerate is 40.
- Code:
backbuffer.SetClipper(NULL);
x--;
backbuffer.BltFast(x, 0, &BigImage;, NULL, GDBLTFAST_KEYSRC, NULL);
Johan, are there any work around to make the scrolling smooth? I dont need tiles since this is the only image i need. Thanks.