verymoko / aerial-lift

https://verymoko.github.io/aerial-lift/
0 stars 0 forks source link

Fix FPS bottleneck on mobile #5

Closed dogfuntom closed 3 years ago

dogfuntom commented 3 years ago

Plan A

Use Profiler. However, it's not clear if Profiler Auto-Connect can work in local network (instead of localhost). It's very possible that it cannot.

Plan B

Plan C

Profile „manually“ (write code that uses Profile API and prints the results on screen or into console log).

verymoko commented 3 years ago

expo.genclub.club has the same low FPS. Tested on Huawei P30 Lite M with MS Xbox gamepad

verymoko commented 3 years ago

Graphy is the ultimate and easy to use FPS counter, stats monitor and debugger for your project.

dogfuntom commented 3 years ago

New plan

verymoko commented 3 years ago

Graphy said on Android: Window: 2880 ×1800 @ 60 Hz [288 dpi], but my phone resolution is 1080 ×1920.

I tried <meta name="viewport" content="width=device-width, initial-scale=1"> in HTML → head — didn't work.

verymoko commented 3 years ago

Uncommented devicePixelRatio: 1 in HTML → script. Window: 2880 ×1800 @ 60 Hz [288 dpi] changed to 960 × 600 @ 60 Hz [96 dpi], increased up to 30 FPS (average 24)