PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Smooth Scrolling in GapiDraw

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.

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.
So far, no one has come up with a way to enable a Vsync. This is a known issue, but I am not sure if/when it will be resolved.
Thanks DR, I'll try to work on this and hoping to solve it. But if anyone already has a solution it will be a great help for me.
denthorq wrote:
Thanks DR, I'll try to work on this and hoping to solve it. But if anyone already has a solution it will be a great help for me.


PocketHAL should be released within the next 2 weeks and will support synchronization with VSYNC for most devices (not for MediaQ / Imageon, unfortunately).
Thierry wrote:(not for MediaQ / Imageon, unfortunately)

Is it because vsync isn't implemented on those chips, or that no information about it can be found?

Thanks,

--Eric
efortier wrote:
Is it because vsync isn't implemented on those chips, or that no information about it can be found?


It is the case.


I actually have the technical manual for the MediaQ chips (1100/32, 1168 and 1178). None of them allows you to retrieve the refresh status. There *is* a way to blit synched with the refresh, but since the blit is taking more time then the refresh period, you still get tearing.

Concerning the Imageon, well, no info available. This chip is also pretty slow so it might not be possible at all.
Johan: Will the Flip() solve the tearing? Thanks.

Thierry: Do you have other solutions?
denthorq: I removed your post in the other thread since it was offtopic there..

Will the Flip() solve the tearing? Thanks.


At the moment, Flip() does not solve the tearing issues on Pocket PCs (please remember that PocketHAL only solves this on some older devices such as the IPAQ 3600 and the 3800).

Depending on the PocketHAL licensing, I might include support for PocketHAL in the next version GapiDraw. I will not compile-in the lib, but I could provide support in other ways that's beneficial to both Thierry and you as an end-user.
Thanks Johan. I was looking for my post on the other thread... I thought I misplaced it hehehe.