-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
[Bug]: ANGLE EGL device has again experienced poor X11 Server performance #780
Comments
What EGL improvements? |
And how exactly do you use ANGLE EGL? Termux does not have options to use EGL directly. |
As you may remember, does not support That is why The
There was a symptom like the above, The symptom was completely fixed starting from the above commit. However, The above build re-occurs with the same symptoms and also causes frame drops. The same for |
Does it happen in legacy drawing mode and/or with forcing bgra on the latest build? I mean different combinations of |
@twaik |
@twaik https://github.com/termux/termux-x11/actions/runs/12629982140 Based on the latest build above,
the following symptoms still occur.
and separately from the frame drop,
https://github.com/termux/termux-x11/actions/runs/12556174093 Only about half the performance of the build is shown. As I mentioned earlier, this symptom occurs only in the |
Do you mean screen tearing?
You mean visual artifacts?
You mean stuttering? Most of these problems may be caused by ANGLE not working with both AHardwareBuffers and regular textures properly, probably the cause of it is not performing drawing in time. I can try to write some kind of alternative renderer which will use vulkan directly in the case if it is available, but it will happen after moving renderer code to activity in order to fix displaying on Huawei and some other devices. |
Should be fixed by f5e0f05 . Check the latest build. |
@twaik |
@twaik The test results show that the issue of However, there are still tearing symptoms and artifacts appearing in the periphery when moving the window quickly.
|
Does it happen with llvmpipe? |
I mean can you please check if it happens with regular llvmpipe/lavapipe without any GPU acceleration? |
@twaik I'll give you feedback again after adding the |
@twaik With the https://github.com/termux/termux-x11/actions/runs/12556174093 In the above build, both |
it was before I moved rendering to its own thread. I have no plans to move it back to X11 thread. |
app-arm64-v8a-debug.zip |
@twaik |
@twaik |
app-arm64-v8a-debug.zip |
app-arm64-v8a-debug.zip |
This fix worked for few other testers and they reported there are no regressions in stability or performance so I decided to merge it. It should be available in the latest build. https://github.com/termux/termux-x11/actions/runs/12658293115 |
The code I wrote should be effectively same as in the commit you referenced. Renderer does not let X server continue execution until the screen is being drawn. So I believe it will fix this annoying bug. |
@twaik |
@twaik As of the latest build But there are some strange symptoms.
And strangely, the frame rate of the vkcube demo feels low. (It runs unsmoothly.) 2025_01_08.21_42.mp42025_01_08.21_42.1.mp4 |
app-arm64-v8a-debug.zip |
@twaik Test results still show tearing and artifacts only in vkcube & glxgears. glmark2, glmark2-es2, vkmark, blender, firefox(WebGL), etc. |
@twaik When running
|
I start to think your gl driver is simply kidding me. |
@twaik How can I help you? |
Probably there is simpler reason why it keeps tearing. I did not protect root window in all possible places and missed some of them. I'll check it. |
Because I'm starting to think I am not sane enough. It is not possible that such a big company (google) releases drivers with visual artifacts like this. |
@twaik However, many parts have been fixed compared to the above build. But from the latest built version, tearing and artifacts occur only in certain situations. (vkcube, zink_glxgears, zink_webgl) |
app-arm64-v8a-debug.zip |
@twaik
|
Yeah, I kinda removed the code which did the dri3 trick because it was a part of the problem. I am going to reimplement it back in a few hours. |
app-arm64-v8a-debug.zip |
@twaik |
app-arm64-v8a-debug.zip |
@twaik It's perfect!!! All symptoms are fixed and it works great. In fact, in the future Google roadmap, it is said that Thank you so much for fixing it!! |
Fixed by cb8c4b0 . |
Problem description
https://github.com/termux/termux-x11/actions/runs/12559148802
Since the above build, the
ANGLE EGL device (Exynos 2400: Xclipse 940 GPU)
has again experienced poor X11 Server performance symptoms.Before the ANGLE EGL improvements were reflected,
when moving the window, the screen would be vertically split or the periphery would be broken,
but since the above build, frame drops are also noticeable.
I am currently using the version below, which does not cause the symptoms.
https://github.com/termux/termux-x11/actions/runs/12556174093
What steps will reproduce the bug?
https://github.com/termux/termux-x11/actions/runs/12559148802
If you install the above version, the following symptoms will occur in X11.
What is the expected behavior?
No response
The text was updated successfully, but these errors were encountered: