-
Notifications
You must be signed in to change notification settings - Fork 103
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
The mouse cursor is a lot slower on 2.16.2 compared to 2.15.0 #3205
Comments
@RAOF would you be able to look at this in your am? |
Hm. So on careful inspection the only thing that stands out between the two logs is the framebuffer config: 2.15 uses an RGBA 8880 config, 2.16 uses an RGBA 8888 config. I suspect that the stuttery mouse is an artifact of a general performance difference - @freefos, is it correct that 2.16 generally performs worse? #3206 re-adds hardware cursor support, which will likely make the cursor more responsive. I think I need to add some extra information to our logging in order to track down what is actually happening here. We don't have enough information about how the framebuffer is being allocated to say anything more concrete. |
@RAOF I can confirm that the general performance is worse. |
@freefos could you please try |
@Saviq I've tested the new version. There seems to be an issue with setting the cursor.
|
@Saviq How do you guys test this? |
@freefos well, we monitor the results from glmark2, and CPU/memory consumption for a handful of scenarios. These didn't surface any problems with 2.16, but that may well not covering some cases, one of which you may have encountered. |
@Saviq I did some tests with MotionMark |
I tried to reproduce on RPi400. First thing I noticed was "no cursor" - and that was with Frame/stable! I'm not sure what can have changed (obviously not Frame/Mir), but found that running in devmode got the cursor back. |
Huh! The most suspect thing here to me is the 15fps (that's detected, not benchmarked). On Intel, I couldn't notice any difference, but on a Pi4 I also got the detected framerate at 15fps. The CPU usage of frame is significantly higher just looking at the main page of MotionMark on wpe-webkit-mir-kiosk. |
Sorry for the noise. This happens when running Frame directly as a use (as in [update] Filed as: canonical/ubuntu-frame#165 |
Confirmed (2.15 is around 15-20% CPU, 2.16 is around 50-70%) Can also confirm similar results from motionmark when run on RPi400 |
Looks like there's an additional failure path the gbm-kms platform needs to address; it would appear that the rockchip DRM driver does not support the standard HW cursor API.
Ok. My hypothesis is that the CPU copy output fallback is being taken here, but we don't have any logging of the actual display/rendering topology we select. But the difference in detected framerate is odd. My guess is that Firefox is using the empty On further thought; it's not Firefox at all; it's WebKit. I wonder how MotionMark asks for the display refresh rate, and how WebKit calculates it. |
Yeah it's certainly something it's measuring - on its first page you can see it's changing colours, I bet it's measuring how quickly it can do that, and approximating FPS, capped at vsync. I think it's a result of the slower rendering, not a symptom / cause. |
This has been seen by @freefos on an ARM Cortex-A55 based SOC (Rockchip RK3568B2) and might be restricted to ARM systems.
Original report
The text was updated successfully, but these errors were encountered: