delorie.com/archives/browse.cgi | search |
From: | "Rob Zombie" <digifx AT concentric DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Frames per second question |
Date: | Wed, 28 Jan 1998 20:57:01 -0500 |
Organization: | Concentric Internet Services |
Lines: | 19 |
Message-ID: | <6aonmm$rq5@examiner.concentric.net> |
References: | <6ae2u5$ls2$1 AT herald DOT Mines DOT EDU> <6aeqlq$qjq$2 AT news DOT ox DOT ac DOT uk> <6am4g7$dtk$1 AT herald DOT Mines DOT EDU> <6amsdf$aap$1 AT news DOT ox DOT ac DOT uk> |
NNTP-Posting-Host: | ts010d01.sag-mi.concentric.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
>I don't think `efficient' is really the right term to use for a delay >loop ;). You might consider calling __dpmi_yield in the loop, which >would let background tasks the OS is performing continue, but this is >probably undesirable in a game. Syntax void delay(unsigned msec); Description This function causes the program to pause for msec milliseconds. It uses the `int 15h' delay function to relinquish the CPU to other programs that might need it. Return Value None. Example delay(200); /* delay for 1/5 second */
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |