delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/00:38:00

From: S2200253 AT NICKEL DOT LAURENTIAN DOT CA
Date: Mon, 07 Apr 1997 00:24:00 -0500 (EST)
Subject: fast vbe graphics
To: djgpp AT delorie DOT com
Message-id: <01IHEKLS7NOI92SA7U@NICKEL.LAURENTIAN.CA>
MIME-version: 1.0

I'm trying to get fast vbe 2.0 (with linear frame buffer) graphics
at 640x480x256 yet am having some difficulties.

I'm drawing the images to a video  buffer (video[640*480]) and then
try to display with

for(int i=0; i < 307200; i+=4)
{
        temp = ((unsigned long)(video[i])) << 24\
        + ((unsigned long) (video[i+1])) << 16\
        + ((unsigned long) (video[i+2])) << 8\
        + ((unsigned long) (video[i+3]));  
        
        _farnspokel(i, temp);
    
}

where temp is a unsigned long and I've already done a
_farsetsel(my_video_ds) but I'm not having much success.

I know univbe can do about 60 fps on my system at 640x480x356 but
it uses multiple pages.  Does anyone know how to use multiple pages or
why codellet doesn't work as I want it to?

Thanks in advance,
Timothy Robb
Serving humanity since 1978.

- Raw text -


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