iOS test port: phone build switches, PerfTest overlay, Codemagic workflow

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>
This commit is contained in:
Forrest 2026-10-14 12:59:22 -04:00
parent f0059f2e80
commit 938a4124df
46 changed files with 65141 additions and 1881 deletions

View file

@ -19,6 +19,8 @@ extends Node
## over GD-Sync (GDSyncLink), with voice chat. In co-op the menus don't pause the farm; the
## host's leaving ends the partner's game (back to this menu, which says why), the partner's
## leaving leaves the host alone. [M] mutes the microphone.
## * On a phone (MobilePort): no ToonLook, no co-op, and leaving the app pauses. The iOS test
## build adds PerfTest (frame times and test buttons).
## Main processes while paused; the farm doesn't. Tests set save_path and settings_path
## before adding it to the tree.
@ -57,9 +59,15 @@ func _ready() -> void:
farm.process_mode = Node.PROCESS_MODE_PAUSABLE
settings = GameSettings.load_from(settings_path)
settings.apply(get_viewport(), sim.config)
var look := ToonLook.new() # toon shading and pixel outlines on the farm
look.name = "ToonLook"
add_child(look)
if not MobilePort.active(): # phones keep the standard materials (MobilePort)
var look := ToonLook.new() # toon shading and pixel outlines on the farm
look.name = "ToonLook"
add_child(look)
if MobilePort.perf_test():
var perf := PerfTest.new()
perf.name = "PerfTest"
perf.setup(sim, farm.get_node_or_null("CampaignDebug") as CampaignDebug)
add_child(perf)
sim.campaign.save_path = save_path
if sim.end_panel != null:
sim.end_panel.has_menu = true
@ -252,6 +260,8 @@ func quit_game() -> void:
func _notification(what: int) -> void:
if what == NOTIFICATION_WM_CLOSE_REQUEST:
quit_game()
elif what == NOTIFICATION_APPLICATION_PAUSED: # a phone app sent to the background
pause()
func _play() -> void: