Repository navigation
Conversation
…ら入れ替えが出るまでの遅れを画面の左上に出す。Pixel 8a でドラッグの追従が遅いと分かったが、手元の Chromium では 60fps のまま再現せず、実機で描画が落ちているのか入れ替えの間隔の上限なのかを見分ける必要がある
|
プレビュー: https://swaprise-pr-85.uphy.workers.dev |
…と tick 数は正常なのに指からの遅れが 80ms 前後あり、遅れが入れ替えの速さから来ているかを、同じ版で ?swap=1 と既定を比べて確かめるため。手元の Chromium で指を一度に 2.5 マスずつ動かすと、遅れは既定で平均 58ms(最大 149ms)、?swap=1 で平均 18ms(最大 49ms)
This was referenced Oct 2, 2026
Owner
Author
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 でパネルを素早く横にドラッグすると追従が明らかに遅い、という報告があった。手元の Chromium(Pixel 8a の画面サイズ・DPR 2.625、CPU 6 倍遅く)では #81 の前後どちらも 60fps のままで、入れ替えは最短 4 フレーム(1 マス約 67ms)の間隔で出ており、再現しなかった。
実機で次のどちらなのかを見分けるため、URL に
?perf=1を付けたときだけ画面の左上に計測を出す。?perf=1がないときは計測のコードを通らない。表示は DOM に 0.5 秒ごとに書き、canvas の描画には混ぜない。確かめたこと
pnpm typecheck・pnpm test?perf=1を付けたエンドレスで、表が出て値が入ること(fps 60・tick/s 60・update 0.1ms・render 1.0ms)