Summary: | weston, when under x11, in sw-render mode, uses lots of processing power | ||
---|---|---|---|
Product: | Wayland | Reporter: | Andrew Engelbrecht <andrew.e.7327> |
Component: | weston | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | 1.5.0 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Andrew Engelbrecht
2014-07-14 05:20:18 UTC
Software rendering is surely consuming CPU for it's using CPU to do the job of rendering, which contains lots of calculation. It's only a fallback if GPU can't be used somehow. Even a simple opengl application can eat up ~40% of CPU on my machine if I use software rendering. In my knowledge, software rendering under DRM backend is not supported. You are using your gpu even if you specify LIBGL_ALWAYS_SOFTWARE, you can check your log for that. Also, with the DRM backend, you are very likely using the hardware cursor. That means that just moving the cursor does not need to paint anything. You can disable that with Win+shift+space then 'c' key sequence for comparison, IIRC. Under x11, there is no hardware cursor being used, and every cursor position updates means repainting. Painting in software rendered GL is heavy. I have no idea what LIBGL_ALWAYS_SOFTWARE does to Weston with the DRM backend, so please always attach the full output from weston so we see what you are getting. Weston does not even use libGL, it's a GLESv2 program. You might have better luck triggering software rendering with EGL environment variables, but that means that it would fail to put the rendering on screen unless you have quite new EGL-DRM software rendering support patch set from mesa-devel (I'm not sure if it was merged yet). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.