What of this methods is faster?
#9

I know that having many macros affects the compile time. I also know that literals are faster than variables. But I honestly doubt it would have any effect at runtime if you chose to use constant variables.

In any case, using const instead of new is better if you know that the value of the variable is never to change. There are also instances where macros cannot be used. For example declaring a large array of floats.

As for keeping track of dialog ids, I use an enumerator. Guaranteed to never have a duplicate id.
Reply


Messages In This Thread
What of this methods is more efficient and effective? - by JavoDiaz - 26.12.2012, 08:09
Re: What of this methods is faster? - by Ballu Miaa - 26.12.2012, 08:27
Re: What of this methods is faster? - by Mafioso97 - 26.12.2012, 08:28
Re: What of this methods is faster? - by Lordzy - 26.12.2012, 08:35
Re: What of this methods is faster? - by JavoDiaz - 26.12.2012, 08:37
Re: What of this methods is faster? - by Mafioso97 - 26.12.2012, 08:40
Re: What of this methods is faster? - by JavoDiaz - 26.12.2012, 09:14
Re: What of this methods is faster? - by mineralo - 26.12.2012, 09:23
Re: What of this methods is faster? - by Vince - 26.12.2012, 12:26
Re: What of this methods is faster? - by JavoDiaz - 26.12.2012, 17:15

Forum Jump:


Users browsing this thread: 3 Guest(s)