-
-
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(frontend): MkImgWithBlurhashでblurhash描画に使うcanvasは再利用するようにする #10966
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #10966 +/- ##
===========================================
Coverage 77.34% 77.35%
===========================================
Files 739 907 +168
Lines 70536 91418 +20882
Branches 7103 7539 +436
===========================================
+ Hits 54556 70716 +16160
- Misses 15980 20702 +4722
|
p1.a9z.dev 眺めてる限りではいい感じに動いてそう |
canvas.width = 64; | ||
canvas.height = 64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そういえばこれもっと大きくても良いのでは
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そう?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
サイズが大きくても buraha の速度はほぼ変わらない
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
保持しておくcanvasのサイズが大きいとメモリを食いまくるような気がする
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(表示に使うHTMLCanvasElementの話
…skey-dev#10966) * blurhashを描画するためのcanvasは再利用する * Revert "perf(frontend): WebGL contextの数を減らす" This reverts commit aeb8955. * MkAvatarは平均色だけにする * clean up * fix
Fix #10960
What
Why
Checklist