From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8311a3a7edd715 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-19 19:40:13 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.infoave.net!arclight.uoregon.edu!newsfeed.mathworks.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: Using "delay until" in real-time Date: Wed, 20 Dec 2000 03:32:27 GMT Organization: Deja.com Message-ID: <91p98c$49d$1@nnrp1.deja.com> References: <915jl7$jt5$1@nnrp1.deja.com> <3A3F133E.4C13077C@esg-gmbh.de> NNTP-Posting-Host: 38.195.186.125 X-Article-Creation-Date: Wed Dec 20 03:32:27 2000 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.6) Gecko/20001205 X-Http-Proxy: 1.1 x56.deja.com:80 (Squid/1.1.22) for client 38.195.186.125 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3275 Date: 2000-12-20T03:32:27+00:00 List-Id: In article <3A3F133E.4C13077C@esg-gmbh.de>, Martin Gangkofer wrote: > translate into English like this: "Between the blind, the one-eyed is > the king". Well closing one eye I see a solution for your problem .. I've heard it in English as "In the land of the blind, the one-eyed man is king." ( > Use integer arithmetics, which is 100% accurate to calculate next > time: > NextTime = StartTime + ( 1/f ) * n = StartTime + ( n * dx ) / > dy; Something pretty much like that has been suggested. My problem with it is that "n" is a counter that has to be monotonically increasing. That means that it will eventually hit an archetectural limit. Of course on my 32-bit machine at 240Hz that limit won't happen until the machine has been running for about 1/3 of a year, but the limit is there. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/