Optimize PortMaster low-memory profile

This commit is contained in:
Alexander Sellite 2026-08-18 01:02:13 -04:00
parent b27883d115
commit 021de5aca4
16 changed files with 327 additions and 31 deletions

View file

@ -187,6 +187,22 @@ func _validate_low_end_profile_contract() -> void:
assert(launcher.contains("NETFISHING_LOW_END=1"))
assert(launcher.contains("--max-fps 30"))
assert(launcher.contains("--audio-output-latency 40"))
var builder: String = FileAccess.get_file_as_string(
"res://scripts/build_portmaster.sh"
)
assert(builder.contains("prepare_portmaster_assets.sh"))
assert(builder.contains("netfishing-portmaster-export"))
var asset_profile: String = FileAccess.get_file_as_string(
"res://scripts/prepare_portmaster_assets.sh"
)
assert(asset_profile.contains("GENERAL_TEXTURE_LIMIT=128"))
assert(asset_profile.contains("GAMEPLAY_TEXTURE_LIMIT=64"))
assert(asset_profile.contains("AUDIO_SAMPLE_RATE=22050"))
assert(asset_profile.contains("compress/mode=2"))
assert(asset_profile.contains("fish/species"))
assert(asset_profile.contains("art/exported/characters"))
assert(builder.contains("--exclude '/audio/ambience/'"))
assert(builder.contains("--exclude '/audio/music/'"))
func _make_button(