Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,24 @@ jobs:
echo "Error: failed to extract release notes for '$version' from CHANGELOG.md." >&2
exit 1
fi

# GitHub Releases caps the body at 125,000 characters; truncate cleanly at a line
# boundary under 120,000 characters and link to the full CHANGELOG.md on the tag.
max_chars=120000
if [ "$(wc -m < release-notes.md)" -gt "$max_chars" ]; then
footer="$(printf '\n\n---\n\n_Release notes truncated to fit GitHub'\''s 125,000-character limit. See the full section in [CHANGELOG.md](https://github.com/%s/blob/%s/CHANGELOG.md)._\n' "$GITHUB_REPOSITORY" "$TAG")"
keep=$((max_chars - ${#footer}))
awk -v keep="$keep" '
{
add = length($0) + 1
if (total + add > keep) exit
print
total += add
}
' release-notes.md > release-notes.truncated.md
printf '%s' "$footer" >> release-notes.truncated.md
mv release-notes.truncated.md release-notes.md
fi
- name: Create GitHub Release
env:
TAG: ${{ github.ref_name }}
Expand Down
16 changes: 8 additions & 8 deletions examples/caverun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ The frame rate on each platform comes from NSGo's performance monitor: run the g

| Target | Device | Display rate | With 1000 sprites |
| --- | --- | --- | --- |
| macOS | not measured yet | | |
| Windows | not measured yet | | |
| Linux | not measured yet | | |
| Web | not measured yet | | |
| iOS | not measured yet | | 60 fps target |
| Android | not measured yet | | 60 fps target |

These need the real devices, so they are filled in as each one is measured ([#8](https://github.com/nsgo-dev/game/issues/8)).
| macOS | MacBook Pro, Apple M4 Pro | 120 Hz | 29–30 fps on NSGo v0.3.4; **119–120 fps** (0% dropped) with NSGo `Canvas.ResolutionScale` + batched Apple `DrawAtlas` ([nsgo#2525](https://github.com/nsgo-dev/nsgo/pull/2525)) |
| Windows | not measured on physical GPU yet | | |
| Linux | not measured on physical display yet | | |
| Web | Google Chrome, Apple M4 Pro | 60 Hz | **60 commits/s** (0% dropped, app 0.65 ms, core 0.35 ms) |
| iOS | iPhone 17 (`iPhone18,3`) | 120 Hz | ~12.5 fps on NSGo v0.3.0; re-test pending NSGo release with `Canvas.ResolutionScale` + [nsgo#2525](https://github.com/nsgo-dev/nsgo/pull/2525) (60 fps target) |
| Android | Google Pixel 3 XL (Android 12) | 60 Hz | **59–60 fps** (0% dropped, frame 0.24–0.35 ms, 60 commits/s) |

These need real devices with GPU-attached displays, so the remaining cells are filled in as each target is measured ([#64](https://github.com/nsgo-dev/game/issues/64), [#8](https://github.com/nsgo-dev/game/issues/8)).

## Tests

Expand Down
Loading