Mail Archives: djgpp/2000/09/15/10:30:49
"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 -