Do you perform many calculations of some complicated function? Is it slowing your game down? Then this is the asset for you. Using a simple programming technique known as look up tables you are able to pre-calculate your function for any range of input values. .
Look up tables however aren't just for speed, sometimes extra precision is needed. For example the implementation of the sine function in GameMaker has poor precision around 0 and thus in order for higher precision, a Taylor expansion is used. Even pre-calculating the Taylor series this will be slower than the inbuilt function but will offer better precision.
A look up table is only constructed to a finite resolution if you attempt to access a value not represented in the given table then Look Up Tables will use linear interpolation between the closest values in the table to obtain a value.
Alternative cosine and cubic interpolation scripts are provided These can be used to improve the interpolated values from tables with large steps between values.
The ability to save and load lookup tables to reduce loading times are also provided. This way it is not required for each instance of the game to calculate the look up tables.
Currently only supports functions in the form f(x) = y.
Includes help PDF
Any suggestions? Need support? don't hesitate to get in touch.
Version 1.0.0. Published July 27, 2015
Created with GameMaker: Studio v1.4.1598
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
No reviews have been left for this asset - be the first!