vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
2.03k stars 301 forks source link

Significantly lesser frame rate when compared to three-globe #51

Open snshn opened 3 years ago

snshn commented 3 years ago

Describe the bug Performance of this web component seems to be inferior to that of the vanilla three-globe component.

To Reproduce Steps to reproduce the behavior:

  1. Compare frame rate of https://vasturiano.github.io/three-globe/example/solar-terminator/ vs. https://globe.gl/example/solar-terminator/

Expected behavior Performance of this component and the plugin it wraps to be exactly the same.

Screenshots N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context nouveau and i915 modules used, not using full acceleration of my GPU (GeForce RTX 2080 Mobile). Willing to debug it more and provide a patch to fix the performance issue.

moranno commented 3 years ago

Disable antialias to gain a better frame rate. const globe = Globe({ rendererConfig: { antialias: false, precision: 'lowp' }})

snshn commented 3 years ago

Thank you for the tip. If the lower frame rate is caused by default renderer settings, this issue can be closed