WFInfo icon indicating copy to clipboard operation
WFInfo copied to clipboard

Use local data instead of checking online?

Open JaneSmith opened this issue 5 years ago • 1 comments

It's my understanding that WFInfo does live online lookups for the ducat and plat values, and the vault status, of each item. It's also my understanding that this is the primary reason for long delays before the WFInfo popup appears, due to a slow network or the web server being slow.

So then, couldn't WFInfo use local data instead, or in addition to the above? Obvious the platinum values need to be looked up, but the ducat value of an item never changes, and the vault status changes very infrequently. If WFInfo had local data, it could immediately display the ducat value for an item. The platinum value could then be shown later once it's loaded in.

With how little time there is on the fissure reward screen, I think it's very important for WFInfo to display its information as soon as possible. What do you think of this?

JaneSmith avatar Nov 05 '18 23:11 JaneSmith

I was able to create an alternative. By loading the data beforehand and pulling the data at once instead of multiple requests, it keeps total traffic low (I don't have the exact numbers) and it does it quickly. Also, the way that schwaxx was using to do OCR, can be optimized further.

Currently all of this is in a fork: https://github.com/random-facades/WFInfo

random-facades avatar Jan 21 '19 19:01 random-facades