PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Items > item list > item tooltip improvement

Aperta
#10,308 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement
Lingua principale
Lua
Stelle
5.4k
Fork
2.4k
Merge medio
1g 12h
PR unite (30g)
26

Descrizione

Check for duplicates
  • I've checked for duplicate open and closed issues by using the search function of the issue tracker
What platform are you running Path of Building on?

Windows

Is your feature request related to a problem?

Since 2.67 I've noticed the item tooltip hitching when mouse is moving over the list of items while "display of stats differences" is turned on.

Describe the solution you'd like

I just want it to work smoothly.
The Ctrl +D "display of stats differences" thing is a great feature, there should be no need to repeatedly turn it on and off.
The way you may implement the fix is up to you.

Describe alternatives you've considered

Those are separated thoughts, I'm not familiar with PoB architecture and don't know what would be the best way:

  1. The calculation result of the "stats differences" could be cached until the build is actually changed, thus the 2nd tooltip should not lag at all.
  2. The item tooltip should expand dynamically, the static content should be displayed as it currently does and the calculated "stats differences" part appear when it's done.
  3. The item tooltip needs a natural delay when hovering over item list, thus the calculations are not repeated on every mouse movement event and rather done when mouse has stopped over the item for a realistic period (like 130ms)
Additional context

It works fine when hovering over equipment, but it chugs over jewels.

Fine:
Image

Not fine:
Image

That Glorious Vanity tootip is delayed by 1.6 seconds, it flashes briefly and then it's replaced instantly with Impossible escape tootip. Kinda pointless.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando il punto di ingresso del tooltip al passaggio del mouse sull’elenco degli oggetti e il calcolo delle differenze delle statistiche con Ctrl+D, concentrandoti sul motivo per cui i calcoli si ripetono spostandosi tra i gioielli. Confronta il comportamento dell’elenco degli oggetti con il comportamento al passaggio del mouse sull’equipaggiamento descritto nell’issue. Il lavoro è completato quando i tooltip degli oggetti non presentano più rallentamenti né mostrano risultati intermedi obsoleti quando le differenze delle statistiche sono abilitate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
lua
Ambito
desktop, performance
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.