From patchwork Tue Jul 28 10:19:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 501136 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FC9D140DFC for ; Tue, 28 Jul 2015 20:23:49 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 358DE1A1C0F for ; Tue, 28 Jul 2015 20:23:49 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 017D21A0B4F; Tue, 28 Jul 2015 20:20:03 +1000 (AEST) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 81298B59BF; Tue, 28 Jul 2015 10:20:02 +0000 (UTC) Received: from thh440s.redhat.com (vpn1-7-70.ams2.redhat.com [10.36.7.70]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6SAJu1i028085; Tue, 28 Jul 2015 06:20:00 -0400 From: Thomas Huth To: slof@lists.ozlabs.org, nikunj@linux.vnet.ibm.com, aik@ozlabs.ru Subject: [SLOF PATCH 2/2] fbuffer: Use a smaller cursor Date: Tue, 28 Jul 2015 12:19:55 +0200 Message-Id: <1438078795-14360-3-git-send-email-thuth@redhat.com> In-Reply-To: <1438078795-14360-1-git-send-email-thuth@redhat.com> References: <1438078795-14360-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, gkurz@linux.vnet.ibm.com MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Drawing the cursor in the frame buffer memory is a very, very slow operation. So let's simply switch to a "underscore" cursor instead of the full block cursor to save some precious cycles. Signed-off-by: Thomas Huth --- slof/fs/fbuffer.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slof/fs/fbuffer.fs b/slof/fs/fbuffer.fs index 0128c07..542c431 100644 --- a/slof/fs/fbuffer.fs +++ b/slof/fs/fbuffer.fs @@ -98,7 +98,8 @@ CREATE bitmap-buffer 400 4 * allot : fb8-toggle-cursor ( -- ) line# fb8-line2addr column# fb8-columns2bytes + - char-height 0 ?DO + char-height 3 - screen-width screen-depth * * + + 3 0 ?DO dup char-width screen-depth * invert-region screen-width screen-depth * + LOOP drop