-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: # ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at d18381f</samp> Refactored `staging_buffer.py` to fix memory leaks and optimize array access. Removed global caches and simplified array functions. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at d18381f</samp> * Remove global caches for depth, vbo, indices, and transforms arrays to avoid memory leaks and overhead ([link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L12-R27), [link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L44), [link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L52)) * Return arrays directly from `get_depth_ndarray`, `get_vbo_field`, `get_indices_field`, and `get_transforms_field` functions in `staging_buffer.py` ([link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L12-R27), [link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L44), [link](https://github.com/taichi-dev/taichi/pull/8223/files?diff=unified&w=0#diff-fd7dee80cc57fcef55c9bedc67a63a5aee4f20ac0375921bebec55beeb5bf928L52)) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
810653c
commit a1c222d
Showing
3 changed files
with
48 additions
and
14 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