ID:2950942
 
I’m starting to look into matrices to replace Icon.Scale and some other graphical things. There’s a couple good posts here but the Help file seems out of date since some of the more recent threads mention features that aren’t in the Help file.


After a matrix has been operated on, how can I get the new values of a,b,c,d,e,f ?

Do matrix operations use GPU? (i.e. are matrix operations inherently faster than doing it manually with an equivalent set of variables and operations)

Are the operations done on client side?
0 votes
Wrong section. But matrix operations are client side, so they use your GPU.


EDIT:

Ter's response is more accurate. The client handles the drawing aspect.


Make a file called stddef.dm and you'll see all of the basic matrix stuff starting on line 319.
0 votes
Help file seems out of date since some of the more recent threads mention features that aren’t in the Help file.

The help file is not out of date. The features being talked about are previews, and will come out with the next major version in a week or so.

After a matrix has been operated on, how can I get the new values of a,b,c,d,e,f ?

Matrices are like a list / datum. You can access a,b,c,d,e, and f by accessing them like a variable from a resulting matrix.

Operating on matrix data structures happens on the server, where everything happens on the CPU. Matrices are used on the client to do drawing, which does happen on the GPU.

are matrix operations inherently faster than doing it manually with an equivalent set of variables and operations

Significantly.

Are the operations done on client side?

No. All operations in your code happen on the server. The client only handles drawing for the most part.

Login to reply.