kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

low performance in android webview #63

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I tried osmbuildings in android webview and performance his really low. Any advice?

thanks

kekscom commented 10 years ago

Hi, I can't guess OS version, device specs, sdk you've used nor I can test all possible combinations. OSM Buildings is created for web browsers. Just that.

ghost commented 10 years ago

I ve tested over 5 devices which have android 4+ (4.0, 4.2, 4.4.2). I used leaflet integration. Especially in samsung galaxy s3 really bad performance. It may be about, your library using sensors to view 3d details. How can i disable that future?

kekscom commented 10 years ago

Ok disabling is worth a test. There is no option at the moment. You could either comment out these lines https://github.com/kekscom/osmbuildings/blob/master/src/adapter.js#L65-L99 and do another build or i make it configurable but it will take a bit of time.

kekscom commented 10 years ago

device movement will be gone very soon

kekscom commented 10 years ago

Device moevemtn is gone. Unelss there are specific optimization hints, there is nothing additional I can do at the moment. Impossible to test all platforms.