Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Yaroze built in look-up tables Date: Tue, 12 Jan 1999 17:55:33 -0800 Organization: . Lines: 19 Message-ID: <369BFD15.C24AA9D6@shell.jps.net> References: <76d2on$qsh3@chuka.playstation.co.uk> Reply-To: tenchi@shell.jps.net NNTP-Posting-Host: dhcp-m-62-237.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) Nathan Miller wrote: > > Does anyone know if the sine and cosine functions just return a lookup table > value or if they actually calculate the return value everytime. If it Probably every time. Miles is right: they are slow. > a lookup table, is there anyway to access this table directly? Seems like > the functions should just return a lookup table value, it would be a lot > quicker. Do the calculation yourself. Precalc on your PC and store it in some global variable... I've been working on a project off and on and the first thing it does is calculate its sine tables. I think there's only 256 or so entries but it takes at least 1.5 seconds to do. So, I just put up an information screen and let that stay there while the Yaroze crunches bits... - e!