Giter Site home page Giter Site logo

1.20.1 - ``blockui-1.20.1-1.0.115-BETA.jar`` has a bug which cases ``mass lag in larger packs`` when browsing ``recipes of min stock`` SMP about blockui HOT 9 CLOSED

ldtteam avatar ldtteam commented on August 16, 2024
1.20.1 - ``blockui-1.20.1-1.0.115-BETA.jar`` has a bug which cases ``mass lag in larger packs`` when browsing ``recipes of min stock`` SMP

from blockui.

Comments (9)

Thodor12 avatar Thodor12 commented on August 16, 2024 1

It's not necessarily a "cache", a scrolling list used to only initialize the items in the view as soon as they were "in view".
That was removed in favor for allowing dynamic element sizing, which would void that logic.

So I guess we're going to have revert that.

from blockui.

Raycoms avatar Raycoms commented on August 16, 2024 1

We probably want to revert it first. And then we will have time to slowly think how we can do this more dynamically on a "need to know basis"

from blockui.

Raycoms avatar Raycoms commented on August 16, 2024

@Nightenom we got several of those reports with the newer blockui versions

from blockui.

Thodor12 avatar Thodor12 commented on August 16, 2024

This could potentially be due to a change I made to scrolling lists, where all items are instantiated at the start in order to allow for dynamic element size.

However I'm pretty sure the min stock list is supposed to be empty at the start.

from blockui.

P3rf3ctXZer0 avatar P3rf3ctXZer0 commented on August 16, 2024

This could potentially be due to a change I made to scrolling lists, where all items are instantiated at the start in order to allow for dynamic element size.

However I'm pretty sure the min stock list is supposed to be empty at the start.

It is empty. Clicking add triggers the bug or did you mean the search list ... if you mean the search list no it seems to list things numerical to alphabetical in ingredients list. Example my pack as 44 ammo so that is always on top.

from blockui.

Thodor12 avatar Thodor12 commented on August 16, 2024

Yeah then this is probably due to the fact that min stock renders every single possible item in the game.
So on open it's stuck making potentially thousands of items before it can show.

from blockui.

P3rf3ctXZer0 avatar P3rf3ctXZer0 commented on August 16, 2024

So my theory of it is re-caching everything on open is not far off? Who knows maybe I will be a coder yet :)

from blockui.

P3rf3ctXZer0 avatar P3rf3ctXZer0 commented on August 16, 2024

What about modifying the system to use pages so you limit spawn of things in beginning to 40 items and then all other things are indexed in 40 slot pages like a book. That way regardless to ui you could still allow dynamic ui window resizing? If people need to fast lookup they can use search function.

In another theory why not allow item lookup through JEI when present? That way they can change things and you can offload the heavy lifting to JEI/REI/EMI

from blockui.

uecasm avatar uecasm commented on August 16, 2024

List virtualization is tricky, especially if you want to be able to randomly scroll to the end of the list without loading anything in the middle. It's much much simplified if all items are fixed size.

Possibly related: I've noticed (prior to these changes) that when using the Replace list in the scan tool, quickly scrolling all the way to the end, then clicking on a block select button, results in selecting the wrong block. Clicking on the "same" button selects a new wrong block each time, until it eventually "catches up" and selects the correct block.

from blockui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.