A one-day port to measure a late night on an iPhone before committing to touch controls (docs/ios-test-port.md). - MobilePort: on phones (the "mobile" feature) no ToonLook (standard materials, Mobile renderer), 3D at 0.75 resolution scale, co-op hidden, microphone never opened, and leaving the app pauses. `-- --mobile` and `-- --perf-test` turn the same switches on for desktop. - PerfTest (the iOS preset's "perf_test" feature): frame time, physics, render CPU and GPU readout, a per-night summary (avg, p99, worst), and tap buttons for night 20/30, unlock all, next phase, and a shield. CampaignDebug's jumps also work in that release build. - iOS export preset (export project only; bundle com.oatmealgames.harvestseason, team 823T4Q2T3U), an opaque 1024 icon, filled privacy purpose strings, ETC2/ASTC import, landscape both ways. - codemagic.yaml: Godot 4.7.2 export, signing, .ipa, TestFlight upload. Graph update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.8 KiB
iOS test port
A one-day port to find out how Harvest Season runs on an iPhone before committing to touch controls. Played with a Bluetooth controller; measured with an on-screen readout.
What the phone build changes
All behind MobilePort (game/scripts/mobile_port.gd), so the desktop build is unchanged:
- Renderer: the Mobile renderer (Godot's default for phones). No
ToonLook: the farm keeps its standard materials. The 3D view renders at 0.75 of the screen's resolution (Settings > 3D resolution scale; pixel size 1). - No co-op: the main menu's "Play with a friend" and the settings' Co-op section are hidden;
the microphone is never opened (
audio/driver/enable_input.mobile=false). - Leaving the app pauses the game.
- Perf test (the iOS preset's
perf_testfeature):PerfTestshows frame times over everything, with buttons to jump to night 20 or 30, unlock everything, end the phase, and shield the scarecrow. It's a release export, so the times are what players would get.
project.godot also gains ETC2/ASTC texture import (iOS needs it) and landscape either way up.
To see the phone build on desktop: godot --path . --rendering-method mobile -- --mobile --perf-test.
One-time setup
- Connect the repo. It lives at
ssh://git@git.troglodyte-cave.com:2222/trog/harvest.git(branchmain). In Codemagic: Add application > Other (any Git URL) > that URL, with an SSH key whose public half is a deploy key on the repo. The host has to be reachable from the internet on port 2222. Codemagic readscodemagic.yamlfrom the branch it builds. - App ID (developer.apple.com > Certificates, Identifiers & Profiles > Identifiers > +):
done: explicit
com.oatmealgames.harvestseason, default capabilities. - App record (appstoreconnect.apple.com > Apps > + > New App): iOS, that bundle ID, any SKU. Then TestFlight > Internal Testing > + : a group with automatic distribution, with you in it.
- API key (App Store Connect > Users and Access > Integrations > App Store Connect API > Team Keys > +, role App Manager). Download the .p8 once. In Codemagic: Team settings > Team integrations > Developer Portal > Manage keys > add it (issuer ID, key ID, .p8) and name it.
- Signing (Codemagic: Team settings > codemagic.yaml settings > Code signing identities): iOS certificates > generate an Apple Distribution certificate (or upload your .p12), then iOS provisioning profiles > fetch an App Store profile for the bundle ID.
- Fill in the
FILL INvalue incodemagic.yaml: the key's name from step 4. The bundle ID (com.oatmealgames.harvestseason) and Team ID (823T4Q2T3U) are already set there and in the iOS preset.
Build and install
Start the ios-perf-test workflow on the main branch (manual start). It takes about
15-25 minutes, then App Store Connect processes the upload (another 5-30 minutes). Install it
from the TestFlight app on the phone.
Pair a controller in iOS Settings > Bluetooth (Xbox, PlayStation, or MFi). Menus also work by tap.
The test
- New vacation (hold to skip the intro) and get to the first morning.
- Tap Night 20, Unlock all, Shield: on, then Next phase until the night starts.
- Play the night with the controller: fight as usual, so crowds and combat are real. The shield keeps the scarecrow standing; the farm can still be stripped.
- At dawn the night's line reads "done". Screenshot it.
- Next morning: Night 30 and repeat.
- Optional: one more night at 3D resolution scale 1.0 and one at 0.5 (Settings), to see how much the GPU matters.
Send back the screenshots, the phone model, and whether it got hot. The numbers to compare with desktop (docs/thirty-night-soak.md): frame avg and p99 against the 16.7 ms of 60 FPS (33.3 ms at 30), and physics, which holds the farm's tick, against its 0.4-1.6 ms average on desktop.