Skip to content

Conversation

@evertonstz
Copy link
Contributor

@evertonstz evertonstz commented Nov 7, 2025

Continues work from #4108

Feel free to change things around. My goal was to just make a minimal UI to surface these values and lay the groundwork for future enhancements.

Captura de tela de 2025-11-07 13-15-37

@evertonstz evertonstz changed the title Add playtime tracking miniaml frontend Add minimal playtime tracking frontend Nov 7, 2025
@mirkobrombin
Copy link
Member

This is exactly how I imagined it!

@mirkobrombin mirkobrombin merged commit 97eb4f9 into bottlesdevs:main Nov 8, 2025
1 check passed
@Perkolator
Copy link

Is there any performance penalty using this feature? I mean, for example, how often does it save the values to DB on disk? Could it affect e.g. a game that reads a lot of data from disk?

@evertonstz
Copy link
Contributor Author

evertonstz commented Nov 8, 2025

Is there any performance penalty using this feature? I mean, for example, how often does it save the values to DB on disk? Could it affect e.g. a game that reads a lot of data from disk?

I mean, its something extra running, so it will consume resources. That being said, the impact is negligible, I would say:

  • Additional CPU usage: << 0.1% of a single core
  • Additional memory: < 10 KB (one session) up to a few hundred KB with many concurrent games running
  • Additional disk writes: A handful of small writes per session start/finish plus one write per heartbeat (default to 60 seconds); well below background noise compared to game asset streaming
  • Long-term disk space: Likely under a few MB after many years of use for typical play patterns

SQLite is one of the most optimized pieces of software out there, its designed for resource-constrained environments. So long story short: dont worry about it.

@evertonstz evertonstz deleted the add-playtime-tracking-simple-frontend branch November 8, 2025 16:49
@Perkolator
Copy link

Would it make sense to change the "last played" and "playtime" to "last ran" and "runtime"? I mean, Bottles can be used to run games and programs. Played and playtime feels weird for a program. Ran and runtime are more neutral and work for both programs and games.

@evertonstz
Copy link
Contributor Author

Would it make sense to change the "last played" and "playtime" to "last ran" and "runtime"? I mean, Bottles can be used to run games and programs. Played and playtime feels weird for a program. Ran and runtime are more neutral and work for both programs and games.

Open an issue asking about it, I'm sure the maintainers will take it in consideration. This PR is already merged and I will probably work on some other projects for a while before incrementing this feat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants