-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit number of parallel frames being painted (#365)
In #67, we started painting frames in parallel instead of serially, in order to fully utilize available CPU. But we did this without any limit. So if a `Root` had hundreds of frames, we would attempt to paint all of them in parallel. This would consume huge amounts of memory by allocating hundreds or thousands of image buffers. Instead, we now limit parallelism to the number of CPU's.
- Loading branch information
1 parent
8895f3c
commit ff21c2c
Showing
1 changed file
with
35 additions
and
2 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