8 seconds was how long I gave iOS before freeing GPU memory. iOS gave me 0
programming.dev
8 seconds was how long I gave iOS before freeing GPU memory. iOS gave me 0
Backing out of Idle Internet Cafe Tycoon on iPhone and the OS would kill the web view a bit later. GPU memory never got released my fix was a setTimeout for 8 s after the app went to background It never ran on real phones. JS gets frozen the instant the app backgrounds, so anything sitting in a timer is just stuck. Shipped it anyway without knowing, crash reports kept showing up build after build Now the release happens right in the same call that handles going to background The game itself is a little PC bang tycoon, rows of computers and customers, it runs in the browser and on Android/iOS [https://programming.dev/pictrs/image/a7725d4c-1fc3-459c-ae74-07cbf65c410a.jpeg]
0 comments
No comments yet.