2
$\begingroup$

Basically, I am trying to find the most efficient way to do simple actions, such as moving objects. I started thinking, what is the game engine actually doing with the logic bricks? is it handling them any different then it would handle a python script to do the same thing? And, if it is handling them any differently, which is faster and more efficient for the game engine to compute?

Logic for moving cube

$\endgroup$
  • $\begingroup$ Great question. I wish I could have up voted it twice. $\endgroup$ – David Jan 12 '15 at 0:45
2
$\begingroup$

Since BGE is written in C in the blender sources it will most likely be a few micro seconds faster than scripting in python that needs to be parsed.

You can test your timings with the "timeit" python module.

in the python console just type:

import timeit
help("timeit")

for the pydoc in blender.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.