[arch-commits] Commit in kdeclarative/trunk (PKGBUILD cpu-plotter.patch)
Antonio Rojas
arojas at archlinux.org
Mon Jul 27 16:29:29 UTC 2015
Date: Monday, July 27, 2015 @ 18:29:28
Author: arojas
Revision: 242526
Fix high CPU usage in plotter component (FS#45795)
Added:
kdeclarative/trunk/cpu-plotter.patch
Modified:
kdeclarative/trunk/PKGBUILD
-------------------+
PKGBUILD | 13 +++++++++----
cpu-plotter.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-07-27 14:47:54 UTC (rev 242525)
+++ PKGBUILD 2015-07-27 16:29:28 UTC (rev 242526)
@@ -4,7 +4,7 @@
pkgname=kdeclarative
pkgver=5.12.0
-pkgrel=1
+pkgrel=2
pkgdesc='Provides integration of QML and KDE Frameworks'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/frameworks/kdeclarative'
@@ -12,11 +12,16 @@
depends=('kio' 'libepoxy' 'kpackage')
makedepends=('extra-cmake-modules')
groups=('kf5')
-source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
-md5sums=('62cb010adb59c15129743ad57fdc198a')
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" 'cpu-plotter.patch')
+md5sums=('62cb010adb59c15129743ad57fdc198a'
+ '12f60b78bf77a69957349989d33ceeda')
prepare() {
- mkdir build
+ mkdir -p build
+
+# Fix high CPU usage in plotter component http://bugs.kde.org/show_bug.cgi?id=348385
+ cd $pkgname-$pkgver
+ patch -p1 -i ../cpu-plotter.patch
}
build() {
Added: cpu-plotter.patch
===================================================================
--- cpu-plotter.patch (rev 0)
+++ cpu-plotter.patch 2015-07-27 16:29:28 UTC (rev 242526)
@@ -0,0 +1,29 @@
+From: David Edmundson <kde at davidedmundson.co.uk>
+Date: Mon, 27 Jul 2015 10:54:17 +0000
+Subject: Don't refresh the entire window when we render the plotter
+X-Git-Url: http://quickgit.kde.org/?p=kdeclarative.git&a=commitdiff&h=7a6a2cda780784e504960c96b4b41241ddf10531
+---
+Don't refresh the entire window when we render the plotter
+
+This means the window is only updated when the plotter changes, rather
+than effectively every possible frame.
+
+Reviewed by: Marco Martin
+
+CCBUG: 348385
+---
+
+
+--- a/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp
++++ b/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp
+@@ -709,9 +709,6 @@
+
+ // Delete the VBO
+ glDeleteBuffers(1, &vbo);
+- if (window()) {
+- window()->update();
+- }
+ }
+
+ QSGNode *Plotter::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData)
+
More information about the arch-commits
mailing list