how to use GPU to render

When using VTK as backend to rende, how to use GPU to solve the problem of low frame rate when use CPU. here’s low rate, i mean i can only got 2 or 3. my CPU is inter i7-9700

You can throttle your simulation by setting the update frequency in a SceneManager. Similarly you can throttle the Viewer. You can also just control the advancement of an imstk Scene by directly calling SceneManager::update or Scene::advance in your own loops.

Its also worth questioning if the lack of CPU is really causing the low framerate or if the GPU is simply too slow.

Privacy Notice