(svn r27985) -Codechange: Convert VA2 switches into ones with non-overlapping ranges, sort them and resolve them using binary search. Speedup sprite resolving by about 7 percent.
This commit is contained in:
@@ -181,6 +181,8 @@ struct DeterministicSpriteGroup : SpriteGroup {
|
||||
/* Dynamically allocated, this is the sole owner */
|
||||
const SpriteGroup *default_group;
|
||||
|
||||
const SpriteGroup *error_group; // was first range, before sorting ranges
|
||||
|
||||
protected:
|
||||
const SpriteGroup *Resolve(ResolverObject &object) const;
|
||||
};
|
||||
|
Reference in New Issue
Block a user