Kapiainen / Lauhdutin

A Rainmeter skin for launching games.
MIT License
67 stars 8 forks source link

Parse steam once per day #121

Closed BanCrash closed 6 years ago

BanCrash commented 6 years ago

Hello! I was thinking of having the option to parse Steam profile once per day, so if you refresh the skin on the same day and you have this option enabled will skip the parsering until next day. I'm thinking of this because my rainmeter crash many times lately, and I like to avoid have to enable and disable every day parsering to avoid those unnecesary parsering.

The way I think this could be done is to read modification time of games.json files, and if the day is today avoid parsering.

I also think that could be added the option to set how often this happens instead only once per day, but this will complicate so many the implementation I guess.

Kapiainen commented 6 years ago

One would presumably also need to have some way of manually forcing the community profile to be parsed the next time that the skin is refreshed (e.g. if you buy a game and want it to show up in the skin without waiting until the next day).

Kapiainen commented 6 years ago

This could actually be applied to all platforms and it would probably reduce the start-up time for the skin when loading it repeatedly during e.g. a day. Run the (currently) usual detection of games, parsing of the community profile, etc. once per user-defined period or whenever triggered manually by the user.

I'll add this to the todo list and give it some more thought.

BanCrash commented 6 years ago

One would presumably also need to have some way of manually forcing the community profile to be parsed the next time that the skin is refreshed (e.g. if you buy a game and want it to show up in the skin without waiting until the next day).

Right, could were an option for that in "Custom skin actions" as "rebuild skin" option that were on 2.x version.

This could actually be applied to all platforms and it would probably reduce the start-up time for the skin when loading it repeatedly during e.g. a day. Run the (currently) usual detection of games, parsing of the community profile, etc. once per user-defined period or whenever triggered manually by the user.

You're right, without that I think the skin would be started in a flash!

I'll add this to the todo list and give it some more thought.

Perfect, thanks you again!

Kapiainen commented 6 years ago

This has now been implemented in the branch for version 3.1.0. There is an option to set how often games should be detected: never, once per day, or always (the current behavior in version 3.0.0). There is also a new custom skin action to force the skin to refresh and detect games. Game detection is also triggered when relevant settings have been changed (e.g. if a platform has been enabled/disabled or a platform's path setting has changed).

BanCrash commented 6 years ago

Perfect, thanks you!!

I just tried and with "never" selected is started veeeery quick. Nice job!