delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/30/17:40:33

From: night DOT walker AT tiscalinet DOT it
Message-ID: <38E3B107.52690C10@tiscalinet.it>
Date: Thu, 30 Mar 2000 21:54:47 +0200
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: DJ Delorie <djgpp AT delorie DOT com>
Subject: Allegro and interrupts: Again!
Reply-To: djgpp AT delorie DOT com

>>I must call sin() inside a timer function (i can't use a LUT,
>>would be too inaccurate...)

Damian Yerrick wrote:
>Would cubic interpolation on a lookup table with 1,024 entries be too
inaccurate?

Of course not! That would be PERFECT!!!
........
WHAT is a cubic interpolation?  :-)


Hans-Bernard Broeker wrote:
>...you can always lookup the size of the sin() function...
How?
Allegro uses a fake function... I can't add a fake func on a library
func...
I have to compile my own sin() from the libm src?

Grendel wrote:
>...the code executed in a timer function should be as little as
possible...
Yeah I know, but i need to update a sinusoid graph with a very accurate
timing...
A polling loop would lose steps when doing something slow (like the
screen refresh)
I've already tried it.

However thanx to all for the feedback and for keeping helping newbies...


- Raw text -


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