Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Passing matrix by ref or by val?

$
0
0

@GeonBit wrote:

Performance-wise, is it recommended to pass around matrices by reference or by value? Will it give any measurable boost / might mess up something in MonoGame? (I know the difference between ref and val no need to explain).

In general it sounds like its better to pass matrix by ref to functions (knowing that they won't change inside), but maybe there's a reason why I shouldn't in MonoGame..

Thanks!

Posts: 8

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles