Daft question

BlitzMax Forums/BlitzMax Beginners Area/Daft question

JBR(Posted 2009) [#1]
When using minib3d I am finding that using

Surf.AddVertex(.....) is faster than AddVertex(Surf,.....)

Infact generally this method method is faster everywhere.

Are all functions available in this method way?

Thanks
Jim


Warner(Posted 2009) [#2]
Some of them are, you can look the function's source up in c:\program files\blitzmax\mod\sidesign.mod\minib3d.mod\inc\tglobal.bmx and functions.bmx in the same folder.
If a function contains only for example surf.addvertex(..), then sure you can use this method instead.


Otus(Posted 2009) [#3]
The same is also true for most other modules. The procedural interfaces often wrap the object oriented ones and so are just a useless (tiny) overhead. Eg. SortList calls list.Sort.