| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
There is a self._save_seq = [] in _init_draw that was missed.
Sorry, something went wrong.
| # Need to reset the saved seq, since right now it will contain data | ||
| # for a single frame from init, which is not what we want. | ||
| self._save_seq = [] | ||
| self._save_seq = collections.deque([], self._save_count) |
There was a problem hiding this comment.
Can't just clear it?
| self._save_seq = collections.deque([], self._save_count) | |
| self._save_seq.clear() |
Sorry, something went wrong.
There was a problem hiding this comment.
sure, even better.
Sorry, something went wrong.
deques are exactly suited for the task at hand, and should be (here, marginally) more efficient than repeatedly slicing off the start of the list. Also drop unneeded reference to old_frame_seq (the iterator already keeps that data alive).
|
thanks, fixed |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
deques are exactly suited for the task at hand, and should be (here, marginally) more efficient than repeatedly slicing off the start of the list.
Also drop unneeded reference to old_frame_seq (the iterator already keeps that data alive).
PR summary
PR checklist