Quick Links: Download Gideros Studio | Gideros Documentation | Ultimate Guide | Gideros Development Center
Faster Maths... - Gideros Forum

Faster Maths...

SinisterSoftSinisterSoft Maintainer
edited February 28 in General questions
@N1cke added support for Macros some time ago, but there hasn't been much discussion about them. So I decided to share what I have to start a conversation about different things that can be used to speed up the maths side of things.

Here are some examples of macros to speed things up:

by using something like d=deg(angle)
This gets converted before the text is parsed into:

The tokeniser evaluates the (180.0*3.14159265358979324) before it gets tokenised, so it becomes 565.486678*angle in tokens.

This is much faster than using the math lib deg function.
+1 -1 (+3 / -0 ) Share on Facebook


Sign In or Register to comment.