Repository navigation
Conversation
… マスごとに入れ替えの終わりを待つので 1 マスに約 67ms かかり、Pixel 8a では fps と tick 数が正常なのに指がマスを越えてから入れ替えが出るまで約 80ms 遅れていた。実機で ?swap=1 に縮めると操作しやすくなったことを確かめた。pnpm sim endless(各 6 回)では casual の得点は 8658 から 8617、生存 455 秒から 436 秒でほぼ変わらず、なぞるだけの swiper は得点 4038 から 7117、生存 359 秒から 474 秒に伸びる。pnpm sim duel の CPU 同士の試合時間は normal 同士 291.6 秒から 273.9 秒、hard 同士 147.3 秒から 179.7 秒。決定論が変わるのでオンラインの GAME_VERSION を online-v6 に上げ、古い版とは対戦させない。ランキングの rules は変えない
|
プレビュー: https://swaprise-pr-86.uphy.workers.dev |
uphy
enabled auto-merge (squash)
October 2, 2026 12:25
uphy
added a commit
that referenced
this pull request
Oct 2, 2026
…実機(Pixel 8a)では ?swap=1 のほうが操作しやすかった。ドラッグは 1 tick に 1 マス(約 17ms)で追従し、横に滑る動きは見えなくなる。pnpm sim endless(各 6 回)では 2 フレームに比べ casual の得点 8617 から 8399・生存 436 秒から 446 秒、swiper の得点 7117 から 6997・生存 474 秒から 466 秒、pnpm sim duel の normal 同士の試合時間は 273.9 秒から 245.9 秒、hard 同士は 179.7 秒から 172.3 秒。決定論が変わるのでオンラインの GAME_VERSION を online-v7 に上げる。入れ替え中の状態が tick の外から見えなくなるので、テストは状態の代わりに柄の位置と、宙に浮いたパネルで静止を確かめる (#87)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
何をなぜ
タッチで素早くなぞると、パネルが指から明らかに遅れて付いてきた(Pixel 8a)。ドラッグは 1 マスごとに入れ替えの終わりを待つので、入れ替えが 4 フレームだと 1 マスに約 67ms かかる。
#85 の計測(
?perf=1)では、Pixel 8a でも fps と tick 数は正常で、指がマスを越えてから入れ替えが出るまでが約 80ms だった。同じ版で?swap=1にすると操作しやすくなったので、遅れの原因は入れ替えの速さだと確定した。TIMING.swapを 4 から 2 にする。1 マス約 33ms で追従し、半分まで滑った姿が 1 フレーム見える。さらに 1 フレームへ縮める変更は #87 で行う。GAME_VERSIONをonline-v6に上げて古い版とは対戦させない(古い版は FIND MATCH で再読み込みを求められる)バランス(pnpm sim、各 6 回)
なぞるだけの swiper は強くなるが、casual と normal CPU の得点を下回るまま。1 手あたりの得点(#80)は swiper 2.4、casual 23 で見分けられる。
確かめたこと
pnpm typecheck・pnpm testpnpm e2e e2e/game.spec.ts e2e/mobile.spec.ts e2e/puzzle.spec.ts