Welcome, Guest. Please login or register.

Author Topic: Amiga Game Engine, system compatible engine  (Read 3367 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show all replies
Re: Amiga Game Engine, system compatible engine
« on: February 28, 2018, 11:56:32 PM »
I noticed you have a cosine and sine lookup table header. If you are implementing lookup based functions for these, may I suggest storing just the sine range equivalent to 0-90 degrees (the first quarter) and making use of the fact that the curve is symmetrical. The same table can be used to compute sine and cosine and will be much smaller and more cache friendly.
int p; // A