Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
1 Active | 72 Guests
Online:

LATEST FORUM THREADS

»
Call of DutyŽ: WWII
CoD WW2 General
SOF2 Prefabs map
SoFII Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: include question
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 07:56 am
Does #include affects the performance in any way?
like including alot of utility stuff or sth like that?
Do i have to care about that?

Thanks
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 08:28 am
It seems very unlikely to me that unused code slows the game down after the compiling by the cod2 engine at gamestart.

So: I think it doesnt matter, but i have no proof to support that theory.
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 10:22 am
it will not slow the gameplay down, it will slow down loading times.. but I doubt it will be noticeable.
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Apr. 1, 2012 02:54 am
#include is a pre-processor command, it simply inserts the content of the given file where this placeholder is written. Won't last longer than loading the specified file with Notepad. And the script interpreter is fast enough to handle many includes, not even sure if it actually looks at utility functions before they are actually called / used.
Share |
Sense
General Member
Since: Jun 17, 2011
Posts: 12
Last: Apr 24, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Sunday, Apr. 1, 2012 03:09 am
I will advice you to not use the #include becouse the content of the file you include will be throwed in the script you putted the #include in and that will result in slow loading and if you include alot it can cause lagg + bad command byte

edited on Apr. 1, 2012 03:10 am by Sense
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»