-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: MkImgWithBlurhashとMkMediaImageを最適化 #10782
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #10782 +/- ##
===========================================
- Coverage 77.86% 76.91% -0.95%
===========================================
Files 164 736 +572
Lines 20290 69802 +49512
Branches 298 6277 +5979
===========================================
+ Hits 15798 53690 +37892
- Misses 4492 16112 +11620 |
なんかよくわからんけどSafariでOffscreenCanvasがバグり散らかしてる |
画面上に最初から表示されている場合は正常に表示されるのがさらに謎 |
srcを指定しなければいいしデータセーバー有効時は指定しないようにした |
バグ
気になったこと
|
TODO
|
完成したImageBitmapを転送することでとりあえず対処…
duration指定するなどしていい感じに動くようにした |
mount前にbitmap作成はmount後にOffscreenCanvas直接描画より遅いことが判明した |
もう mounted 時に HTMLCanvasElement 直接マウントしようぜ |
こんなに遅いイメージがない(ファイル数多いから?) Chrome.bh-worker.mp4Firefox.bh-worker.mp4 |
ファイル数を増やすとFirefoxが遅くなりはじめた (OffscreenCanvasで変更された内容が一斉に適用されるようになっている??) |
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
This reverts commit a9c49e4.
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
HTMLCanvasElementではコンテキストを作るのがnative canvas?かOffscreenCanvasかの二択となっており…と思ったけどつまりImageBitmap転送式で最初に描画すればいいということか
TransitionGroupの兼ね合いを考えると無理そう |
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
1 similar comment
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
createImageBitmap()を使っているからだった |
Chromatic will skip testing but you may still have to review the changes on Chromatic. |
cqh周りのバグが解消される(Firefox 115)まで縦長デフォルト表示がバギーなんだけど、初期値を1:1にするとかもありうる |
|
YOSASOU |
👍🏻👍🏻👍🏻 |
* misskey-dev#10781 * fix tsconfig * fetch image?? * Revert "fetch image??" This reverts commit 0925c28. * wip * Revert "wip" This reverts commit be97c6c. * loading="eager" * loading="eager" 2 * error * wip * wip * wip * wip * clean up * fix * 生成するworkerを1つにする? * clean up * use buraha * wip * smaller width, height * update buraha * clean up * fix * Update MkMediaImage.vue * Update MkImgWithBlurhash.vue * Revert "fix(frontend): センシティブ設定された画像を開くとき一瞬レイアウトが崩れる問題を修正" This reverts commit 41e9aa6. * Update MkMediaList.vue * Update MkMediaList.vue * Update MkMediaList.vue * Update CHANGELOG.md * wait for decode * fix * ? * (test) remove container-type: inline-size; * Revert "(test) remove container-type: inline-size;" This reverts commit 9448e64. * container-name * Revert "container-name" This reverts commit 94385d3. * width: 100%; * improve performance * refactor * wip * WIP * wip * Revert "wip" This reverts commit 36e3b75. * Revert "WIP" This reverts commit 05b729e. * Revert "wip" This reverts commit 0801e79. * misskey-dev#10860 * wip * no worker * Revert "no worker" This reverts commit a9c49e4. * ✌️ * workerNumber固定は不要 --------- Co-authored-by: syuilo <[email protected]>
Resolve #10781
Resolve #10860
What
Why
パフォーマンス向上
Additional info (optional)
Checklist