Repository navigation
perf: テクスチャ効果の距離判定を軽くする #1257 - #1265
Merged
bflatastic merged 1 commit intoOct 12, 2026
Merged
Conversation
haranishi
marked this pull request as ready for review
October 11, 2026 20:23
Contributor
Author
|
@echelon レビューをお願いします。報告動画のCraquelure付き角丸矩形を自作フィクスチャで再現し、近傍セル探索の距離計算を減らしました。3効果の画素一致、ネイティブアプリのドラッグとUndo/Redo、macOSの全7工程CIを確認済みです。Linux + wasmの同一コミットCIと上流Affinityチェックも成功したことを本文に記載しました。Windowsでの実マウス追従とアイドル時の性能確認は残るため、#1257への部分的な改善としてレビューいただきたいです。 |
bflatastic
force-pushed
the
perf/issue-1257-craquelure-cell-search
branch
from
October 12, 2026 00:50
a9d33fc to
d0569b7
Compare
Member
|
Thanks @haranishi! Merged. It's rebased onto current main with no changes of mine, and the full local gate passed. The brute-force test compares |
4 tasks done
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.
What and why
Refs #1257
報告動画で使われている Round Corners + Craquelure の再描画で、画素ごとの近傍セル探索を軽くします。最大25セルの距離を二乗で比較し、丸め誤差や同距離の境界だけ従来の
hypot比較に戻します。同じ探索を使う Mosaic Tiles と Stained Glass にも効きます。効果設定と描画画素を維持します。Windowsでのマウス追従は未確認です。このPRは再描画の計算量を減らす変更で、イシュー全体の解消には操作確認が残ります。進捗文書にも残件を記載し、スコア・工数は据え置きました。
How it was tested
cargo xtask ci: 全7工程成功、5,382件成功・0件失敗・5件ignored。cargo test -p vectorcraft-render texture_drag_perf -- --ignored --nocaptureも実行成功。変更後の別実行では114.54 / 89.96 / 155.29 msでした。各フレームで図形を移動し、静止画のキャッシュを再利用しない計測です。ui.pointerでドラッグ: 図形の位置だけが変化し、効果設定と選択は維持。1操作のUndo/Redoで文書全体が元に戻ることと、描画画像を確認しました。ui.screenshotはNoFrameのため取得できず、OSの実マウス操作・表示フレームは未検証です。vectorcraft-cli perfを変更前後で実行。高負荷のためアイドル時の性能判定は保留です。変更後の初回は検証アプリの起動と重なり、400%ズームが20.80 msで16 ms予算を超過しました。アプリ終了後も18.58 msで予算を超過し、他9項目は予算内でした。どちらも負荷平均31.3の測定で、アイドル時の再確認は残っています。a9d33fc91941f9cc3b325f3ae818579c1ab2317dを指定した Linux + wasmの全CI が成功しました(全7工程、5,367件成功・0件失敗・5件ignored)。上流の Affinity 3 corpus も成功しました。Checklist
cargo xtask cipasses (fmt, clippy, tests, assets, brands, layers, wasm).ASSETS.md(新規アセットなし)。