krishauser / Klampt

Kris' Locomotion and Manipulation Planning Toolkit
BSD 3-Clause "New" or "Revised" License
377 stars 96 forks source link

Robots with per-face / per-vertex colors act slow using poser #96

Closed krishauser closed 3 years ago

krishauser commented 3 years ago

A pretty significant performance issue with the pose editor for robots that have per-face / per-vertex colors. This affects RobotTest, SimTest, and RobotPose, as well as Python code that tries to edit the robot's pose.

Briefly, the poser rebuilds a new display list every time because it copies the appearance, sets a flat color, which clears the openGL display lists. Then to display it, it creates a new display list, but then it destroys the appearance copy.

Possible solutions: store a persistent duplicate appearance/

krishauser commented 3 years ago

Fixed in 0.8.7