defold / extension-kaios

Defold native extension for use with KaiOS
MIT License
3 stars 4 forks source link

Add memory detection function #6

Open subsoap opened 3 years ago

subsoap commented 3 years ago

navigator.getFeature('hardware.memory') returns a Promise that should resolve to either 0.25 or 0.5 on KaiOS You need the feature-detection permission, which is only available to privileged apps

Add this and make a note using it requires the permission. It could be useful for detecting lower end devices and trying to be more conservative with memory / rendering features potentially.