PocketMatrix forums

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

Problems with PocketHAL 0.7.1

hi thierry,

i have problems with PHAL 0.7.1 which i did not have with version 0.6.5 (i never tried 0.6.6):

on my iPAQ3970 the landscape mode (ORIENTATION_ROTATE90CCW) works fine but my program crashes when using ORIENTATION_NORMAL. on my Dell X3 it is exactly the other way around.

PHAL crashes in 'RotateTileCCW_PXA + 148 bytes' when calling Display::Swap(). It does not crash if BeginScene() (and then ofcourse also GetBackBuffer()) was not called. it also crashes if i just called BeginScene() but not GetBackBuffer(), so i'm quite sure i'm not writing into illegal memory areas.

before the crash one frame is already copied to the display on the 3970, but it is not rotated correctly.

one more thing: i just noticed that also the Surface's width and height are switched with 0.7.1. So width/height is 320/240 although they should be 240/320 in portrait mode...

thanks,
Daniel
I reproduced this and it should be an easy fix. The issue is present with both 90CW and 90CCW.
There seems to be another smaller problem in PH.

When " display->Swap(SWAP_VSYNC); " is used, I can still see tearing at the bottom of the screen.
This is especially prominent in the minimal sample if you change display->Swap() to display->Swap(SWAP_VSYNC).

Here is a sample picutre I made to help illustrate what I see when I run the minimal sample with SWAP_VSYNC:

Image

The picture on the right is similar to what I see on my device (H4350). From that I conclude that the two frames of the minimal sample are not complete when the screen is flipped.

This means that either a) the screen is drawn when PHAL is still flipping, or b) PHAL starts flipping when the screen is still drawing.

- Alex

PS: I reproduced this on PH 0.6.6 as well.
OK the sync code between 0.6.6 and 0.7.1 is the same. It needs to be revisited anyways as it doesn't take the viewport into account.

Probably will be fixed in 0.7.3.
Pejo Software - Per · 15 Jun 2004, 19:49 UTC
I also tried version 0.7.1 now and found that Orientaion was not wrapped in the PHAL namespace anymore, intentional?
Pejo Software - Per wrote:I also tried version 0.7.1 now and found that Orientaion was not wrapped in the PHAL namespace anymore, intentional?


Wasn't intentional. Already fixed in my source tree.