Game Development Community

Removing Unused Console Methods

by Nikos Beck · in Technical Issues · 03/24/2008 (6:53 pm) · 4 replies

Would removing console method definitions in the source speed up the game? It's one less method that needs to be checked while interpreting script. For example, I don't do a lot of vector manipulation so I remove some vector functions. The engine no longer needs to check those methods while inrepreting code? I might be expecting a naive implementation where all console methods are in a linked list that is searched over and over again instead of some optimized, funky graph-Markov chain contraption.

#1
03/24/2008 (8:21 pm)
Console functions are C++ functions. Removing them will make the .exe smaller. That's about it.
#2
03/28/2008 (7:34 am)
Actually, I think it would be very interesting if you did some benchmarks with them there, and with them removed, and posted them.
#3
03/28/2008 (10:28 am)
Personally i'd be surprised if this had any benefit.
#4
03/28/2008 (8:16 pm)
I don't actually have a pro license so I can't test it. I expect Garage designed the Torque interpreter well and removing a few function definitions wouldn't make much of a difference. I was just curious.