deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

Picking Info doesn't work on mobile (iOS)

Open j13y opened this issue 7 years ago • 14 comments

I've upgraded to deck.gl and luma.gl 6.4 and picking info doesn't work, object is null. Tested on Simulator and iPhone.

Any of these examples don't work: http://deck.gl/#/documentation/developer-guide/adding-interactivity?section=using-pure-js Same as an example: http://deck.gl/#/examples/core-layers/icon-layer

The issue appears also under 6.3.x

j13y avatar Jan 31 '19 12:01 j13y

I've upgraded to deck.gl and luma.gl 6.4 and picking info doesn't work... The issue appears also under 6.3.x

@jarekpelczynski Just to clarify, has it ever worked for you on iOS? I.e. are you reporting a regression or a bug? If it has worked, which version was good?

ibgreen avatar Jan 31 '19 14:01 ibgreen

Yes, It worked under 6.1.1 and earlier, under 5.x for sure.

j13y avatar Jan 31 '19 14:01 j13y

img_3696 img_3698 Tested and can't reproduce, the picking works well on my iphone 6s with safari

jianhuang01 avatar Jan 31 '19 18:01 jianhuang01

@jianhuang01 I can't find the first example – mind providing the URL?

The second example works for me. I checked version:

deck
{VERSION: "untranspiled source", version: "untranspiled source", log: e}
luma
{VERSION: "6.4.0-alpha.3", version: "6.4.0-alpha.3", log: e, stats: {…}, globals: {…}}

but the example with Meteorites Landings an event doesn't trigger.

j13y avatar Feb 01 '19 07:02 j13y

@jarekpelczynski here is the URL, the Meteorites Landings example is down on mobile, we will check the website issue, the picking module in deck.gl should be fine.

jianhuang01 avatar Feb 01 '19 14:02 jianhuang01

I get these errors when I click on the layer (Safari/iOS simulator). error and also onClick on image layer doesn't trigger but triggers onLayerClick (on DeckGL component) but it returns null.

Those errors could be related to this issue?

j13y avatar Mar 14 '19 15:03 j13y

Looks like the texture it's creating for the framebuffer is too large.

@ibgreen is the devicePixelRatio option new in Luma?

@jarekpelczynski can you go to this site and tell us what it reports for your Max Texture Size: http://webglreport.com/

tsherif avatar Mar 14 '19 17:03 tsherif

@ibgreen is the devicePixelRatio option new in Luma?

No it is not.

However it seems every year, new phone models have more extreme retina resolutions (I think they are now 400dpi+, certainly beyond what my eyes can resolve), so we are taking a big memory and performance hit without much visible gain.

I always felt that useDevicePixels should default to false on mobile devices.

ibgreen avatar Mar 14 '19 17:03 ibgreen

I always felt that useDevicePixels should default to false on mobile devices.

Maybe everywhere? Could be considered a "high quality rendering" option for users that want it, with the performance caveats made clear.

tsherif avatar Mar 14 '19 17:03 tsherif

@tsherif WebGLReports shows 4096

j13y avatar Mar 14 '19 17:03 j13y

@jarekpelczynski yeah, that's pretty tight. Do you know what the resolution of your screen is?

tsherif avatar Mar 14 '19 17:03 tsherif

Maybe everywhere? Could be considered a "high quality rendering" option for users that want it, with the performance caveats made clear.

Perhaps. It certainly improves visuals on MacBooks which is our main user base and perf is good in the applications that are most important to us, so removing it by default would be a step down for these users unless all apps started to opt in.

The issue I have seen is mainly when folks connect 4K external displays, and/or use this on mobile phones.

Alternatively, as a crazy idea: with all the instrumentation you are putting in, we could support an auto mode where device pixels would be turned off if FPS fell too much.

ibgreen avatar Mar 14 '19 18:03 ibgreen

@tsherif I use iOS Simulator and iPhone Xs device so it should be 2436 x 1125px. I try to figure out why picking object doesn't work on iOS devices and got these errors with framebuffers

j13y avatar Mar 14 '19 18:03 j13y

Closing since this discussion was about a very old version of deck.gl. Reopen if this is still an issue with the latest release.

Pessimistress avatar Oct 16 '20 17:10 Pessimistress