Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement 298292a in a different way. Turns out it's a problematic ca…
…se to have a sigc::signal with thousands of slots in it, since for each disconnect() call the signal implementation checks *all* remaining slots for emptiness, which takes a *lot* of time when the map is freed. Introduce a Shader::Observer interface and store those in a std::set for fast lookup of existing observers.
- Loading branch information
1 parent
f3282b6
commit 95e03ee
Showing
4 changed files
with
65 additions
and
38 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