🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1242

Re: scroll framebuffer i linux

#1242
From: Sergiusz Rozanski
Date: Tue, 03 Jul 2007 12:33
18 lines
1753 bytes
Dnia 03.07.2007 Sergiusz Rozanski <write-only-with-spf@sergiusz.com> napisał/a:
> Witam,
> Co prawda piszę w C taki mały potrzebny mi gadget, ale chyba tylko
> tu znajdę pomoc.
> Piszę do pewnego projektu scrolla (taki jak w TV). Sam scroll działa,
> ale bardzo wolno. Fonty zczytuję z jpeg załadowany do pamieci i dodaje
> po 1 pixlu na końcu, a reszte (1023x40) przesuwam w górę framebufora.
> Całość robi pętla 0 do 39 i w niej proste memmove.
> Ale to memmove robi się makabrycznie wolno. W sumie kopiuje raptem
> 80KB pamięci (ale zazębiającej się). Jak to zrobić sprawniej?

Zrobiłem drugi bufor poza vramem, bo głównym spowalniaczem był odczyt z
vram i teraz piszę fb pojedynczym memmove i jest git.

-- 
*** rozanski.at.sergiusz.dot.com sq3bkn ***
***       http://www.4x4.kalisz.pl      ***
$ You have new spam in /home/serek/maildir/
Technical Details
Message-ID: <slrnf8kg85.b49.write-only-with-spf@dns.media-lab.com.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <slrnf8k5sb.3sg.write-only-with-spf@dns.media-lab.com.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Sergiusz Rozanski <write-only-with-spf@sergiusz.com>
Newsgroups: pl.comp.lang.asm
Subject: Re: scroll framebuffer i linux
Date: Tue, 3 Jul 2007 12:33:40 +0000 (UTC)
Organization: media
Lines: 18
Message-ID: <slrnf8kg85.b49.write-only-with-spf@dns.media-lab.com.pl>
References: <slrnf8k5sb.3sg.write-only-with-spf@dns.media-lab.com.pl>
NNTP-Posting-Host: hq.media-lab.com.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1183466020 12849 83.3.137.42 (3 Jul 2007 12:33:40 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 3 Jul 2007 12:33:40 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit