PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding
Performance issues with multiple instances (massive lag and app freezes)
オープン
まだ誰も着手していません。
bug
- 主要言語
- Lua
- スター
- 5.4k
- フォーク
- 2.4k
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 26
説明
Check version
- I'm running the latest version of Path of Building and I've verified this by checking the changelog
Check for duplicates
- I've checked for duplicate issues by using the search function of the issue tracker
What is the expected behaviour/value?
- The app should not start lagging and freeze like crazy when you open a second instance (otherwise prevent it).
- It should ideally share resources with the 1st one (looks fine, although it a bit heavy on RAM ~400mb each).
- I should be able to search for a gem in the skills menu without a 3 seconds freeze (not responding).
- I should be able to select / unselect nodes on the tree without lag or freezes
What is the actual behaviour/value?
When two instances of PoB are running :
- Selecting / unselecting a node (even worst when pathfinding comes up for mulitple nodes) it lag massively and often freezes for 1-2 seconds
- Searching for a gem in the Skills menu should not freeze the app for 3+ seconds
- Selecting an item in the dropdown in the Items menu should not freeze or lag the app
- Creating a new item in the Items menu, should not freeze the app for 1 second after clicking save
Seems like PoB is re-calculating / doing backend stuff on the UI thread most of the time, which cause massive lag and freeze, with a medium / full size tree.
How to reproduce the issue
After opening one (or both) the following PoB codes below in two instances of PoB :
- Select / unselect nodes in the Tree menu (should notice lag or freeze)
- Search for a gem in the dropdown of the Skills menu (should notice freeze)
- Try changing the select item in one slot of the Item menu (should notice lag or freeze)
Character build code
#1 is from a build guide : https://pastebin.com/w0krs09Q
#2 is from one of my character's profile : https://pastebin.com/Eg6AtanZ
But, it lag with any medium / full size trees I've used.
Screenshots
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、2つのPath of Buildingインスタンスと提供されたPoBコードを使ってフリーズを再現し、Tree、Skills、Itemsメニューに重点を置きます。1つのインスタンスと2つのインスタンスで、ノードの選択、ジェムの検索、アイテムの選択、アイテムの作成を比較します。これらの操作によって報告されているラグやフリーズが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- desktop, performance
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100