//fps control for performance. Assumes the refresh rate of your monitor is 60hz //(120hz monitor set to 30 here will actually run at 60fps) #define FPS 60. #define decim(a, b) (floor((a)*(b))/(b))