www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/01/19:16:30

From: "23yrold3yrold" <cbarry AT pangea DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <395e61e0_2 AT spamkiller DOT newsfeeds DOT com> <8jls7k$bv1$1 AT onlinenews DOT germany DOT net>
Subject: Re: Using timers to speed up a program
Date: Sat, 1 Jul 2000 18:08:55 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 64.4.88.38
Message-ID: <395e7a63_2@spamkiller.newsfeeds.com>
X-Trace: 1 Jul 2000 18:10:27 -0500, 64.4.88.38
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse AT newsfeeds DOT com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Yes, that would work for this little program, but I need something to handle
enemy ships, bullets, power-ups, etc. Again, I need a hand with speeding up
the clock.

> [.....]
>
> > If anyone can
> > find a way of increasing the tick rates of the following program, I
would
> > greatly appreciate it. Thank you.
> >
> [.....]
>
> > do
> > {
> >  game_time = 0;
> >
> >  clear(dbl_buffer);
>
> I never tried it but here is an idea:
> Instead of clearing the main video buffer every frame, backup the part of
> the dbl_buffer where your ship will be the next frame, then just update
that
> part of dbl_buffer where the ship was.
>
> I don't know for sure if this was what you wanted to know.
>
> ---
> Shadax
>


- Raw text -


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