Conorsmine / PlayerDataManipulator

PDM is a spigot plugin meant to make the process of working with playerdata easier to understand and to execute on the fly.
2 stars 0 forks source link

Better page loading #2

Closed Conorsmine closed 1 year ago

Conorsmine commented 1 year ago

While precomputing everything is nice, it creates a huge lag spike every time someone opens or closes a section or reloads the page. Firstly, only redraw the lines. Furthermore only compute the "visible" part of the NBT tree; Lazyload everything else when needed. Also change from a strict grid based system to one where you can easily hide sub-trees using a CSS class. So when the tree was already computed, it'll just be made invisible when it's not needed anymore or visible if needed. This will also eliminate the need to set the input of the input every time smth is reloaded.

Conorsmine commented 1 year ago

Solved with commit 54b53ae2f7a3d68411946b870993c3ffa6fce022.