Replace per-frame floats list + struct.pack in _update_skeleton with a preallocated numpy.float32 staging buffer (_skel_cpu_buf), eliminating the dynamic allocation on every draw call (~60/s).
10 lines
369 B
Python
10 lines
369 B
Python
"""pytest configuration: ensure package root is on sys.path for test imports."""
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add the parent of data_only_viz/ to sys.path so that
|
|
# "from data_only_viz.xxx import ..." works at module-level in test files.
|
|
_parent = str(Path(__file__).resolve().parent.parent.parent)
|
|
if _parent not in sys.path:
|
|
sys.path.insert(0, _parent)
|