www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/17/11:02:24

From: Tuomo A Turunen <tuturune AT cc DOT helsinki DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro and blitting to screen
Date: 17 Jul 1998 14:43:29 GMT
Organization: University of Helsinki
Lines: 18
Message-ID: <6onnuh$12p$2@oravannahka.Helsinki.FI>
NNTP-Posting-Host: kruuna.helsinki.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

HELP !!??
I'm programming a very nice game with DJGPP and allegro. I use SVGA
640*480*256 colors, so graphic looks good. But the problem is the
double buffering. It's just too slow. Example :

  BITMAP *buffer = create_bitmap(640, 480);

  clear(buffer);
  while( game_continues) {
    // some drawwing on the buffer
    blit(buffer, screen, 0, 0, 0, 0, 640, 480);
  }

That is a the only way I can think of, but itsn't fast enough.
So is there any faster way to do that 'blit(buffer, screen, ...)' ???

Tuomo Turunen

- Raw text -


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