yuki-koyama / elasty

A research-oriented elastic body simulator
MIT License
363 stars 29 forks source link

Eigen::VectorXd and Eigen::MatrixXd are prohibitively slow #2

Closed yuki-koyama closed 5 years ago

yuki-koyama commented 5 years ago

Currently, the constraint projection solver uses Eigen::VectorXd and Eigen::MatrixXd inside its loop. Unfortunately, their instantiation seems to be prohibitively slow in this case because they are dynamically allocated on the heap rather than on the stack. This issue needs to be solved for real-time use.