-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Engine: changed the rules for updating drawables on dyn sprite change
1. Do not reset the game objects' Graphic properties when the sprite is deleted. 2. Record that the sprite was in use only at the drawing stage, in a more centralized manner. When the sprite is updated or deleted, reset the drawable caches and mark game objects for update, but only if a sprite was marked as in use. Sprite being in use flag is only removed when the sprite is deleted. This saves unnecessary objects check for sprites that were never assigned to anything; if they were only used as intermediate stage in raw drawing, for instance.
- Loading branch information
1 parent
db6b49e
commit c556b0a
Showing
5 changed files
with
51 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters