grahamrow / Muview2

3D visualization of micromagnetic simulation data from Mumax or OOMMF
GNU General Public License v2.0
41 stars 8 forks source link

Why is it still lag in cubes display? #31

Closed XuebingZhao closed 5 years ago

XuebingZhao commented 5 years ago

For large instance, I'd like to use cubes display, expecting some speed up. However all display types seem like to having same speed.

If only the surfaces are rendered, it should be much faster.

BTW, can the program utilizing GPU in future?

grahamrow commented 5 years ago

Hi, drawing in Muview isn't very optimized for large systems. Beyond backside culling not much is done to throw out geometry. I should probably reduce the number of openGL API calls by using instanced drawing methods, but this project is unfortunately not a priority for me at the moment.

As for GPU, I'm not sure what you mean. Everything is already rendered on the GPU using OpenGL shaders, and GPU computing wouldn't help here given the slow memory-host data transfers.

grahamrow commented 5 years ago

Turns out you are correct — I've been able to massively improve speeds by moving almost all computations into the GLSL and using instanced drawing commands. You can build off the feature/instanced-drawing branch until I get the CI builds working with up-to-date Qt.