daanmichiels / igl-hr

Hyperbolic space on the Oculus Rift
3 stars 0 forks source link

Grid consist of separate objects #8

Closed daanmichiels closed 9 years ago

daanmichiels commented 9 years ago

But it should be a single object with a single mesh. Having so many separate meshes leads to serious performance issues. On my system with a grid with spacing 0.5 (about 1200 lines I think), the program runs at about 90fps. With spacing 5 (a hundred times fewer meshes) the program runs at over 2000fps.

daanmichiels commented 9 years ago

We should build up the grid as a single mesh with draw mode GL_LINES.

mcdaniel67 commented 9 years ago

Fixed in latest push.