Pregunta

Ahora estoy asignado para intentar integrar una representación 3D que se realizó en Webgl a Pyopengl.Tengo algunas muestras de ambas cosas, sino desde el principio, me he encontrado con un dilema.Para uno de los objetos que tiene una gran cantidad de vértices, la versión de WebGL se ejecuta mucho mejor que el PYOPENGL ONE. Soy en su mayoría curioso si esto es normal o es un problema de implementación.

Saludos, Bogdan

¿Fue útil?

Solución

Is your PyOpenGL implementation using VBOs for rendering the geometry?

The main performance issues we ran into when implementing WebGL were JS->C++ call overhead, type conversions and GC runs. Which is why WebGL is using Typed Arrays for data and VBOs for rendering: Typed Arrays reduce the need for type conversions and are potentially faster to GC than JS arrays, whereas VBOs minimize the amount of API calls and CPU->GPU-traffic.

On PyOpenGL I'd imagine the main issue to be type conversions. But you shouldn't run into that with VBOs, hence the question.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top