# iOS test port A one-day port to find out how Harvest Season runs on an iPhone before committing to touch controls; measured with an on-screen readout. The first device run (2026-10-14, night 20, every enemy on the farm) held 60 FPS: no frame slower than 30 FPS, worst frame 19.7 ms, worst physics 0.8 ms. Touch thumbsticks came next. ## 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`). - **Touch thumbsticks** (`TouchSticks`): a finger on the right half of the screen is a move stick where it lands, one on the left half an attack stick (aim that way, attacking each time the weapon is ready). Taps no longer count as fire, so moving never attacks; a held finger still skips the intro. Nothing else (interact, build, fear, weapons, pause) has a touch control yet; a paired controller does everything. - **Leaving the app pauses the game.** - **Perf test** (the iOS preset's `perf_test` feature): `PerfTest` shows 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 1. **Connect the repo.** It lives at `ssh://git@git.troglodyte-cave.com:2222/trog/harvest.git` (branch `main`). 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 reads `codemagic.yaml` from the branch it builds. 2. **App ID** (developer.apple.com > Certificates, Identifiers & Profiles > Identifiers > +): done: explicit `com.oatmealgames.harvestseason`, default capabilities. 3. **App record:** done (Apple ID `6822823738`, in `codemagic.yaml` for build numbers). In TestFlight > Internal Testing > + : a group with automatic distribution, with you in it. 4. **API key:** done. The team's key is the Codemagic integration `Troglodyte` (shared with Timbre). 5. **Signing:** done (Codemagic: Team settings > codemagic.yaml settings > Code signing identities). Certificate `harvest--seasons`; App Store profile `harvest` for `com.oatmealgames.harvestseason`, expiring 2027-10-14. Both are referenced by name in `codemagic.yaml`. The app has to be in the same Codemagic team as these signing files. ## 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. Play with the thumbsticks, or pair a controller in iOS Settings > Bluetooth (Xbox, PlayStation, or MFi). Menus work by tap. ## The test 1. New vacation (hold to skip the intro) and get to the first morning. 2. Tap **Night 20**, **Unlock all**, **Shield: on**, then **Next phase** until the night starts. 3. Play the night (thumbsticks or controller): fight as usual, so crowds and combat are real. The shield keeps the scarecrow standing; the farm can still be stripped. 4. At dawn the night's line reads "done". Screenshot it. 5. Next morning: **Night 30** and repeat. 6. 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.