delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/04:46:55

From: J-E Mikael B Segercrantz <segercra AT cc DOT helsinki DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro: Flashing screen, HELP!
Date: 29 Jul 1997 22:25:40 GMT
Organization: University of Helsinki
Lines: 29
Message-ID: <5rlql4$t4t$1@oravannahka.Helsinki.FI>
NNTP-Posting-Host: kruuna.helsinki.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am writing a game using SVGA 640x480 resolution with 256 colors, using
the Allegro 2.2 library.  I have taken the timers into my own control
(nothing that uses graphics in them), have sounds playing (no music done
yet), and am reading the keyboard.

This is the skeleton of the routine:

	while (!(player[0].dead || player[1].dead))
	{
		/* read the keyboard */
		/* move players */
		clear(theBitmap);
		/* place background image (only the needed part)
		   on theBitmap */
		/* place the player images on theBitmap */
		/* blit theBitmap completely to screen */
	}

Now, the screen flickers something awful (but only the background
image), other objects blitted are steady.  I've tried with vsync(), but
with no success.

Could anyone with some experience in this help me?  Oh yes, I'm using
with the player images both stretching and rotation - but my tests show
that I should still have ample spare time.

-- 
- Mikael Segercrantz
  segercra AT cc DOT helsinki DOT fi

- Raw text -


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