(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:
frosch
2018-03-11 13:21:27 +00:00
parent d9d669dcf8
commit 07d841d0ef
3 changed files with 72 additions and 11 deletions

View File

@@ -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;
};