Post

Replies

Boosts

Views

Activity

Reply to App Rejected "Your app is not functional when Location Services are disabled"
The problem is that a "UIRequiredDeviceCapabilities" (array) key is missing with the values "gps" and "location-services" in the Info.plist file Don’t set “gps” unless you really need 1m accuracy; it will prevent your app from working on wifi-only iPads. I think the non-gps locations on those devices should be good enough for e.g. a dating app - unless it’s a dating app for mountaineers! Also I’m. ot convinced that this is the solution to rejections. I agree with pianosmooth above, just do what they say however ridiculous. In cases like the original post, I’d show a default location with a prominent message saying “location services disabled, tap here to go to settings”. Don’t use (0,0) as your default location, that’s confusing; I suggest something like Alcatraz Island. Don’t choose Cupertino, they will think you have somehow bypassed the restriction!
Mar ’23
Reply to Tile Rendering in Metal
There are about 16651560 Vertices on the screen. In that case, I suggest that you do some pre-processing on the CPU: When you're zoomed out and the entire image is visible, use Douglas-Peucker line simplification, or similar, to reduce the number of vertices. When you're zoomed in, use some sort of spatial index to send only the vertices that are on the screen. (I.e. "tile" your input vertices, not your output.) You'll end up with some sort of multi-resolution data structure. Note it's easy to over-engineer this (I've done that). The GPU is fast. You only need to do some crude CPU pre-processing to get the number of vertices down to something tractable. Also: is the very large number of vertices because you want smooth curves made from very short straight segments? If so, consider storing fewer vertices and using the GPU to draw the curves; search for "GPU quadratic bezier".
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Reply to Tile Rendering in Metal
The problem is I can't redraw the whole offscreen texture every frame while panning because for performance reasons Redrawing everything every frame is how most 3D apps work. If you can do that, then you don’t need your offscreen texture. How many triangles do you need to draw? Have you characterised where the performance bottleneck is?
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Reply to How distribute Open Source software for macOS?
To give the software a life-expectancy beyond my own, I have now updated the program as a Gradle build and placed it on Github Hmm, what is github's policy when the account holder dies? as soon as it moves to another Mac, I get the ugly message: "GS_MV" is damaged I think the first thing you need to do is to check if the "damaged" copy actually does differ from your working original. How did you copy it? Try scp or rsync. Maybe copy it back again and then compare with cmp, or compute checksums, or something. Does it mean that I have to pay a ransom to Apple No.
Topic: Safari & Web SubTopic: General Tags:
Mar ’23
Reply to App Rejected "Your app is not functional when Location Services are disabled"
The problem is that a "UIRequiredDeviceCapabilities" (array) key is missing with the values "gps" and "location-services" in the Info.plist file Don’t set “gps” unless you really need 1m accuracy; it will prevent your app from working on wifi-only iPads. I think the non-gps locations on those devices should be good enough for e.g. a dating app - unless it’s a dating app for mountaineers! Also I’m. ot convinced that this is the solution to rejections. I agree with pianosmooth above, just do what they say however ridiculous. In cases like the original post, I’d show a default location with a prominent message saying “location services disabled, tap here to go to settings”. Don’t use (0,0) as your default location, that’s confusing; I suggest something like Alcatraz Island. Don’t choose Cupertino, they will think you have somehow bypassed the restriction!
Replies
Boosts
Views
Activity
Mar ’23
Reply to Tile Rendering in Metal
There are about 16651560 Vertices on the screen. In that case, I suggest that you do some pre-processing on the CPU: When you're zoomed out and the entire image is visible, use Douglas-Peucker line simplification, or similar, to reduce the number of vertices. When you're zoomed in, use some sort of spatial index to send only the vertices that are on the screen. (I.e. "tile" your input vertices, not your output.) You'll end up with some sort of multi-resolution data structure. Note it's easy to over-engineer this (I've done that). The GPU is fast. You only need to do some crude CPU pre-processing to get the number of vertices down to something tractable. Also: is the very large number of vertices because you want smooth curves made from very short straight segments? If so, consider storing fewer vertices and using the GPU to draw the curves; search for "GPU quadratic bezier".
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Tile Rendering in Metal
The problem is I can't redraw the whole offscreen texture every frame while panning because for performance reasons Redrawing everything every frame is how most 3D apps work. If you can do that, then you don’t need your offscreen texture. How many triangles do you need to draw? Have you characterised where the performance bottleneck is?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to How distribute Open Source software for macOS?
To give the software a life-expectancy beyond my own, I have now updated the program as a Gradle build and placed it on Github Hmm, what is github's policy when the account holder dies? as soon as it moves to another Mac, I get the ugly message: "GS_MV" is damaged I think the first thing you need to do is to check if the "damaged" copy actually does differ from your working original. How did you copy it? Try scp or rsync. Maybe copy it back again and then compare with cmp, or compute checksums, or something. Does it mean that I have to pay a ransom to Apple No.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23