Compare Blitz VS C++ performance on logic

Blitz3D Forums/Blitz3D Programming/Compare Blitz VS C++ performance on logic

Following the suggestioon of someone at http://www.blitz3dfr.com forum, I've changed the acos C function to cos function.

this changes a lot!

New stats :

Blitz debug : 455
Blitz full speed : 101
C++ debug :1297
C++ full speed and acos: 15
C++ full speed and cos : 0.31

This make C++ 390 time faster than Blitz.

This is only a logic test, about 3D the difference must be close to nothing, because Blitz itself is programmed in C or C++ and because most of the work is done by the 3D hardware.

That's why doing DLL for anything that needs a lot of logic is a good idear. Particles for example uses a lot of logic, and can be too slow with Blitz.