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:
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.