Made some optimizations to get rid of a visible jitter
[CHG] moved some temp variables to constructor function to prevent their unnecessary creation on every frame
[CHG] removed storing of matrix in markers[markerId].transform to prevent an unnecessary copy