In the world of GameMaker 3D, people sometimes hit a performance wall caused the functions like matrix_mutliply and matrix_transform_vertex returning a new array every time they're used, giving the garbage collector a lot more work.
To get around this, it would be nice if the functions could accept an extra argument as an output array which the results could be passed into, instead of having to allocate a new one.
For example:
new_matrix = matrix_multiply(mat1, mat2)
becomes
matrix_multiply_ext(mat1, mat2, mat_output)
This could be an optional argument, or a separate _ext version of the functions.
Description
In the world of GameMaker 3D, people sometimes hit a performance wall caused the functions like matrix_mutliply and matrix_transform_vertex returning a new array every time they're used, giving the garbage collector a lot more work.
To get around this, it would be nice if the functions could accept an extra argument as an output array which the results could be passed into, instead of having to allocate a new one.
For example:
new_matrix = matrix_multiply(mat1, mat2)
becomesmatrix_multiply_ext(mat1, mat2, mat_output)
This could be an optional argument, or a separate _ext version of the functions.