Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.gnustep.bug > #4054

[patch #8781] [back] Faster bitmap drawing on Cairo

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Josh Freeman <INVALID.NOREPLY@gnu.org>
Newsgroups gnu.gnustep.bug
Subject [patch #8781] [back] Faster bitmap drawing on Cairo
Date Sun, 25 Oct 2015 00:13:31 +0000
Lines 65
Approved bug-gnustep@gnu.org
Message-ID <mailman.1013.1445732021.7904.bug-gnustep@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain;charset=UTF-8
X-Trace usenet.stanford.edu 1445732021 7321 208.118.235.17 (25 Oct 2015 00:13:41 GMT)
X-Complaints-To action@cs.stanford.edu
To Riccardo Mottola <rm@gnu.org>, Josh Freeman <gnustep@twilightedge.com>, Fred Kiefer <FredKiefer@gmx.de>, bug-gnustep@gnu.org
Envelope-to bug-gnustep@gnu.org
X-PHP-Originating-Script 0:sendmail.php
X-Savane-Server savannah.gnu.org:443 [208.118.235.70]
X-Savane-Project gnustep
X-Savane-Tracker patch
X-Savane-Item-ID 8781
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:36.0) Gecko/20100101 Firefox/36.0
X-Apparently-From 108.26.230.127 (Savane authenticated user tedge)
In-Reply-To
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2001:4830:134:6::a
X-BeenThere bug-gnustep@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNUstep programming environment <bug-gnustep.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-gnustep>
List-Post <mailto:bug-gnustep@gnu.org>
List-Help <mailto:bug-gnustep-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.gnustep.bug:4054

Show key headers only | View raw


URL:
  <http://savannah.gnu.org/patch/?8781>

                 Summary: [back] Faster bitmap drawing on Cairo
                 Project: GNUstep
            Submitted by: tedge
            Submitted on: Sun 25 Oct 2015 12:13:30 AM GMT
                Category: AppKit
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The attached patch speeds up -[CairoGState DPSimage:::::::::::] &
-[CairoGState GSReadRect:] for faster bitmap drawing to & from graphics
contexts. This makes PikoPixel's interactive tools more responsive on slow
hardware, such as a Raspberry Pi.

- Bitmap data is reformatted using uint32s instead of uchars, reducing the
number of memory operations

- Invariant objects returned in GSReadRect:'s dictionary are stored in a
static dictionary instead of being reallocated each time

A speed check program is also attached; On a Raspberry Pi 2B with the current
trunk, the {512,512}x500 speed checks take ~11 seconds for drawing & reading.
Using the patch, the speed checks take ~8 seconds for drawing (~27% speedup) &
~10 seconds for reading (~9% speedup).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 25 Oct 2015 12:13:30 AM GMT  Name: CairoGState_BitmapSpeedup.patch 
Size: 8kB   By: tedge

<http://savannah.gnu.org/patch/download.php?file_id=35281>
-------------------------------------------------------
Date: Sun 25 Oct 2015 12:13:30 AM GMT  Name: TestBitmapDrawSpeed.m  Size: 4kB 
 By: tedge

<http://savannah.gnu.org/patch/download.php?file_id=35282>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8781>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/

Back to gnu.gnustep.bug | Previous | Next | Find similar


Thread

[patch #8781] [back] Faster bitmap drawing on Cairo Josh Freeman <INVALID.NOREPLY@gnu.org> - 2015-10-25 00:13 +0000

csiph-web