Remove probably unnecessary subentity owner refresh, as nothing appears to change it, and doing it every frame gets expensive
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5036 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
3f9eb935b1
commit
9447db9ea8
@ -5184,7 +5184,9 @@ ShipEntity* doOctreesCollide(ShipEntity* prime, ShipEntity* other)
|
||||
ShipEntity *subEntity = nil;
|
||||
foreach (subEntity, [self subEntities])
|
||||
{
|
||||
[subEntity setOwner:self]; // refresh ownership
|
||||
// already set on subentity creation and not going to have changed, isn't it?
|
||||
// anyway, didn't appear to break anything when I took it out - CIM
|
||||
// [subEntity setOwner:self]; // refresh ownership
|
||||
[subEntity drawSubEntity:immediate :translucent];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user