PocketMatrix forums

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

Screen tearing in Betaplayer

It seems that no matter what I do with my encoding job, I always get screen tearing when using Betaplayer on my iPaq 3115. I know it is not the bitrate, as I can encode it much higher and it still plays at full speed.

It happens with all kind of video, be it fast paced anime, to slow pace live action. Any kind of scrolling movement causes the tearing. I have tried encoding it at lower rates, higher rates, rotating the video, everything. It always results in screen tearing.

I encode at 320x240 at about 350-400 kbs (Divx 5.1) with 128 kbs mp3 audio. There is no decrease in performance, just the annoying screen tearing.

Is there any way to stop this annoying problem?
Its to do with the top of the screen displaying the next frame before the bottom frame has changed. I think thats right, get the same effect in pc games without vsync on.

If this is wrong do please correct me everybody :).
Ok.... but how do I fix that.
Chris Edwards · 29 Apr 2005, 13:00 UTC
It's a hardware thing. Your screen updates the pixels from one corner of the screen to another, and doesn't do it fast enough for you to think it's instant.
I get the same thing, but not nearly as bad as you are getting it. I watched a few music videos and got the same thing when they started dancing, but it was neglible. Have you looked through all the betaplayer settings, or tried it in a different player? It might just be a hardware problem, sorry...
This happens on every PPC with direkt framebuffer access via GAPI/GETRAWFRAMEBUFFER, which basically means every modern PPC.

However the hardware accelrated devices like the X50v do not have screen tearing while playing movies.

It's a hardware thing. Your screen updates the pixels from one corner of the screen to another, and doesn't do it fast enough for you to think it's instant.


This the wrong explanation. The problem is, that screen updates are not synchronized with vblank. It has nothing to do with the speed the screen updates happens.
On the X50v you can synchronize screen updates with th vblank period with either the video API oder the OpenGL|ES API, which perfectly eliminates tearing.

Tala
I can confirm there is 0 screen tearing on the X50V :).
my device the hx2755 has no screen tearing w/ beta player.... yes im very picky about this stuff

there is no accelration on this device
my device the hx2755 has no screen tearing w/ beta player.... yes im very picky about this stuff


That is very unlikely to say the least and impossible if GAPI is not buffered.
All new QVGA devices, which i am aware of do not have buffered GAPI.

Tala
Tala wrote:
my device the hx2755 has no screen tearing w/ beta player.... yes im very picky about this stuff


That is very unlikely to say the least and impossible if GAPI is not buffered.
All new QVGA devices, which i am aware of do not have buffered GAPI.

Tala


just tested 3 videos in beta player

-shrek, the new family guy and the matrix

sorry tala no screen tearing :P
Chris Edwards · 01 May 2005, 02:42 UTC
Tala wrote:
This the wrong explanation. The problem is, that screen updates are not synchronized with vblank. It has nothing to do with the speed the screen updates happens.
On the X50v you can synchronize screen updates with th vblank period with either the video API oder the OpenGL|ES API, which perfectly eliminates tearing.


Thanks for clarifying. Sorry about the misinformation.
Tala wrote:This happens on every PPC with direkt framebuffer access via GAPI/GETRAWFRAMEBUFFER, which basically means every modern PPC.

However the hardware accelrated devices like the X50v do not have screen tearing while playing movies.

It's a hardware thing. Your screen updates the pixels from one corner of the screen to another, and doesn't do it fast enough for you to think it's instant.


This the wrong explanation. The problem is, that screen updates are not synchronized with vblank. It has nothing to do with the speed the screen updates happens.
On the X50v you can synchronize screen updates with th vblank period with either the video API oder the OpenGL|ES API, which perfectly eliminates tearing.

Tala


So does that mean it can be fixed on my device, or am I just out of luck?
So does that mean it can be fixed on my device, or am I just out of luck?


I am afraid, this cannot be fixed, since this problem is directly related to how GAPI works.
With other words, when the application writes into the color/frame buffer it has no clue about the LCD update status. In order to avoid tearing the application would have to wait until the LCD controller enters the vblank period before touching the framebuffer.

Sadly this also applies to games too, though the effect is parcticulary visible if the moving direction of some object/background is orthogonal to the update direction (ie. horizontal scrollers in portrait and vertical scrollers in landscape)

Tala
Tala wrote:
So does that mean it can be fixed on my device, or am I just out of luck?


I am afraid, this cannot be fixed, since this problem is directly related to how GAPI works.
With other words, when the application writes into the color/frame buffer it has no clue about the LCD update status. In order to avoid tearing the application would have to wait until the LCD controller enters the vblank period before touching the framebuffer.

Sadly this also applies to games too, though the effect is parcticulary visible if the moving direction of some object/background is orthogonal to the update direction (ie. horizontal scrollers in portrait and vertical scrollers in landscape)

Tala


This sounds to me like it is a software problem that could be fixed in the future.