delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/01/07:56:31

From: Tom St Denis <stdenis AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Nasty, nasty graphic flicker
Date: Thu, 01 Feb 2001 12:27:18 GMT
Organization: Deja.com
Lines: 23
Message-ID: <95bkn1$ehe$1@nnrp1.deja.com>
References: <3a78f002_1 AT corp DOT newsfeeds DOT com>
NNTP-Posting-Host: 24.112.8.23
X-Article-Creation-Date: Thu Feb 01 12:27:18 2001 GMT
X-Http-User-Agent: Mozilla/5.0 (Windows 98; U) Opera 5.01 [en]
X-Http-Proxy: 1.1 x58.deja.com:80 (Squid/1.1.22) for client 24.112.8.23
X-MyDeja-Info: XMYDJUIDtomstdenis
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <3a78f002_1 AT corp DOT newsfeeds DOT com>,
  "23yrold3yrold" <cbarry AT pangea DOT ca> wrote:
> Hello. I have a simple question; how is it that a simple command to blit to
> the screen from a grabber datafile can cause random flickering of the image
> all over the screen? It only happens half the time, first use of the bitmap.
> Occasionally the program just crashes. Does anyone have any idea what might
> cause this? And before you ask for code snippiets, I assure you they're
> normal, plain vanilla draw_sprite function calls.

Flickering normally happens because you are drawing during the vertical sync.

Try doing this

do {
   vsync();
   // draw stuff
} while (!done);

Tom


Sent via Deja.com
http://www.deja.com/

- Raw text -


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