Quote Originally Posted by Clootie
Quote Originally Posted by dmantione
So my questions are:
* Are you aware that FPC has a matrix unit?
* I was not aware of it.

* Do you think it suits the needs of games?
* If you implemented one yourself, why did you do so?
Partly I understand the question as: "Why no games use it?"
Let's see what came to mine mind after some looking at unit:
* It's not cross-compiler, i.e. it's not possible to use it in Delphi
* matrix-matrix multiply implemented using cycles
* no SSE handtuned version of functions
* most of graphic libraries already cames with they own "native" vector types, so why one need to struggle with type conversion between them FPC matrix types.
Thanks for the feedback. Delphi compatibility is a bit hard with the operator overload stuff, which is IMHO what it makes elegant. It could be made GNU-Pascal compatible, since that compiler uses the same syntax as FPC. Unfortunately nobody uses GPC. I agree that to make it really attractive it needs optimized routines, which includes unrolled multiplies and SSE. The binary format is intentionally just a two-dimensional array, which hopefully maximizes the chance that you can use it in a library without difficult conversion.