From: Craig T. Taylor (ctalkobt_at_bellsouth.net)
Date: 2004-12-11 18:50:37
>
> From: Christopher Phillips <shrydar@jaruth.com>
> Date: 2004/12/11 Sat AM 06:19:59 EST
> To: cbm-hackers@ling.gu.se
> Subject: Re: Update on emulating a paddle on the C64.
[ .snip. ]
> How precise is the 7000? You could always change the new code to
> tmp=new/2-old/2
> and compare to 3500 instead - that would avoid the problem with large
> jumps getting lost.
Actually, tmp=(new-old)/2 is better. (Really, tmp=(new-old)>>1 if the compiler has a crappy optimizer). It's best to loose precision at the end of an expression rather than midstream. The revised formula will feel more responsive to relative changes while the new/2 - old/2 would be okay for boundary changes.
- Craig Taylor
Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.