(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles.
This commit is contained in:
@@ -225,15 +225,6 @@ struct PoolItem {
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this a valid object or not?
|
||||
* @return true if and only if it is valid
|
||||
*/
|
||||
virtual bool IsValid() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
/**
|
||||
* Allocate a pool item; possibly allocate a new block in the pool.
|
||||
|
Reference in New Issue
Block a user