Using includes, or direct in script?
#1

Which one is faster? Is it faster if I just use #include <bla> or copy the include files clearly on the gamemode and use it. Which one?
Reply
#2

None is faster - thats ye thing with includes.
It's in the name - include.

When you hit Compile the include is INCLUDED in your gamemode, so It's just like you put it directly into your gamemode.

But the advantages is that you can download the latest version from the author without worry.
Reply
#3

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
None is faster - thats ye thing with includes.
It's in the name - include.

When you hit Compile the include is INCLUDED in your gamemode, so It's just like you put it directly into your gamemode.

But the advantages is that you can download the latest version from the author without worry.
100% no effect?
Reply
#4

Any line that has a hash sign (#) in front of it, is processed by the pre-processor. This is done before the actual compiling. The pre-processor basically copies the file into your gamemode. It doesn't affect CPU or RAM usage at all.
Reply
#5

Yes, no effect at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)