-
-
Notifications
You must be signed in to change notification settings - Fork 173
Tearing when using landscape orientation #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks, that's nice to hear!
Just to be sure: The tearing does not ocurr in normal (portrait) orientation, right? Or did you just not test with portrait orientation? Actually, the rotation is done using OpenGL. The low-level graphics code (errors in which could cause tearing) is the same, regardless of orientation. Additionally to the |
As far as I can tell from testing just then, the tearing does not occur in portrait_down orientation. I'm not using SystemChrome.setPreferredOrientations in my code, is this something you recommend for a landscape application? Not sure if relevant, but I saw in another issue you used kmscube to test graphic, and using your branch i was able to run in both normal and atomic modes |
No, changing the orientation at runtime using
Okay, did you notice any tearing in either legacy or atomic mode? You could also try checking out the flutter-pi sources at commit a041cd4 and build & run those and see if it fixes the tearing. There's one thing in the graphics code that isn't "adequately implemented", I'll try improving that, maybe that solves it. |
Didn't notice any tearing in any of the kmscube modes, either in your version or the apt version. However, i can't run the apt version in atomic mode, i get an error that simply says I will try the commit of flutter-pi you mentioned now |
Checked out that commit and built but no difference, here is a video of the problem in action. https://streamable.com/fh4wqn |
That video is very interesting. The tearing looks very weird, it's not at all what you would expect if vsync was not working somehow. I haven't yet reproduced the problem. My flutter app looks pretty similiar to yours (PageView with some icons). In slo-mo, I noticed 1 occasion of tearing on my display, but it doesn't look anything like the tearing you experience. (You have multiple tears simultaneously, i.e. multiple regions where the "old" frame shows) What display are you using? (model, vendor, HDMI or DSI) I'm using the Official 7-inch display (so DSI) |
The display I use (link below) is HDMI, 1024x600. This might be useful also, heres my /boot/config.txt
And this is my cmdline.txt
|
Okay, I reproduced it. I connected a HDMI monitor to the Pi and I consistently get the same tearing that you get too. That means it doesn't have anything to do with flutter-pi. I googled a bit and it's actually a known issue, but likely won't be fixed since they're working on getting the new (Full-KMS) graphics driver ready instead. See this forum thread I just tried and it works fine with the Full-KMS driver. (Didn't test with all the |
Closing this now since it's an OS bug. |
Followed the instructions and confirmed that I have linux 5.4 installed correctly
Everything runs fine, but I now cant use my touchscreen! Any help would be appreciated, but I understand if it's hard to replicate this one
|
Did you run
To be precise, only the touch doesn't work right? Or does the display not work too? Touch shouldn't be affected at all by the |
Haha, yes I did run rpi-update. Thanks so much, will try this soon. And yes, just the touchscreen not working, the display seems to work but i can't test for tearing yet |
To follow up, I have reinstalled and all is working now. I think my touchscreen just changed from |
Nice! Btw why are you specifying the |
I just assumed I needed it, I will remove it if that will detect the touchscreen automatically |
First of all, thank you for this brilliant project. I've had very minimal issues and the docs are great when first setting up the environment.
My issue is that when I use an item such as
PageView
withscrollDirection: Axis.horizontal
in a landscape orientation, massive tearing occursI start flutter like this:
./flutter-pi/out/flutter-pi -i "/dev/input/event1" -o landscape_right -d "155,86" ./app
Here is my output
Output
The text was updated successfully, but these errors were encountered: