volga-volga / react-native-yamap

React Native Yandex Maps | Яндекс Карты | Yandex.MapKit implementation for react native | YandexMaps
152 stars 85 forks source link

Use Vulkan while running on M1 iOS simulator #228

Closed justblender closed 1 year ago

justblender commented 1 year ago

MapKit SDK by default uses OpenGL for rendering that iOS simulators running under M1/M2 do not support, which results in huge memory usage and terrible map responsiveness in apps while developing on newer Mac desktops.

This PR introduces a fix that enables Vulkan rendering while compile target is set to an iOS simulator and runs under ARM64 architecture (M1/M2).