-
Notifications
You must be signed in to change notification settings - Fork 5
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
[不具合][全般]メモリ食い過ぎ #10
Comments
Firefox@Windows 11/8GBで試したところ、 |
基本的に弾幕はサイズと色が同じなので、 |
canvas elementを保管している変数をdeleteしてメモリが開放されるなら画像生成時にsettimeoutで3+a秒経過後に削除して、消えてたら再生成とかのほうがメモリには優しそう |
ver 0.2.11で対応 |
弾幕は基本的に短期間にまとまって来るのでキャッシュとclearするtimeoutを内容をキーにして保持しておいて同じコメが流れたらtimeoutを更新するようにすれば弾幕周辺の処理を軽量化できそう |
同一コメント、同一コマンドでキャッシュを再利用 |
概要
コメントを大量に読み込むと、コメントのキャッシュが溜まってメモリが爆発する
Brave@m1 macで試したところ12GBを越えたあたりで爆発した
キャッシュの最大保持数を設定する必要があるかも
そもそも50000件も普通読み込まないから問題ないと思うけど
The text was updated successfully, but these errors were encountered: