delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/15/10:30:49

From: "Riox92" <t-bos AT home DOT nl>
Newsgroups: comp.os.msdos.djgpp
References: <CCPv5.8958$l6 DOT 494172 AT zwoll1 DOT home DOT nl> <ahpvrsk85aa5timiempvrlfa9adl0bmhvk AT 4ax DOT com>
Subject: Re: What is faster as memcpy???
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <15qw5.520$Sp1.3368@zwoll1.home.nl>
Date: Fri, 15 Sep 2000 14:10:05 GMT
NNTP-Posting-Host: 213.51.72.195
X-Complaints-To: abuse AT home DOT nl
X-Trace: zwoll1.home.nl 969027005 213.51.72.195 (Fri, 15 Sep 2000 16:10:05 MET DST)
NNTP-Posting-Date: Fri, 15 Sep 2000 16:10:05 MET DST
Organization: @Home Network
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Damian Yerrick" <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> schreef in
bericht news:ahpvrsk85aa5timiempvrlfa9adl0bmhvk AT 4ax DOT com...
> On Wed, 13 Sep 2000 18:23:30 GMT, "Riox92" <t-bos AT home DOT nl> wrote:
>
> >Its for a VESA2.0 24bit LFB Switch routine.
> >
> >Now i use memcpy. on a screen of 640*480*24bit screen.
> >But on little objects dots the switch looks to slow.. Please can someone
> >help me out...
>
> You're moving 900 KB of data per frame.  Without hardware
> acceleration, this will be slow.
>
I know. stil it works good enough for the engine.
Some cards work 32bits internal so you reserve a memsize of 640*480*4 and
the memory is then r,g,b,res.
(since ive opend a 24bit screen) it takes it up to 1,2Mb copy.

> >Its so iritating to work with it.. even a simple starfield is looking
> >messy.. except for 1 pixel speeds
>
> How about only memcpy()ing the parts of the screen that have changed?
> Search Google for [dirty rectangles  ]

Its a starfield starting in 24bit so the object (env-map object with a
moving light) can come on the screen,
Stars fade away.


>
> --
> MS (n)  1. A debilitating and surprisingly widespread affliction
>   that renders the sufferer barely able to perform the simplest
>   task.  2. A disease, multiple sclerosis (see).
>
> This is McAfee VirusScan. Add these two lines to your signature to
> prevent the spread of signature viruses.  http://www.mcafee.com/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019