Skip to content

Refinement: Performance, UI/UX and Logic Improvements - #23

Open
mx57 wants to merge 2 commits into
feat/desktop-pet-cat-implementation-13128440384193574434from
bolt-perf-ui-refinement-1978427563272863595
Open

Refinement: Performance, UI/UX and Logic Improvements#23
mx57 wants to merge 2 commits into
feat/desktop-pet-cat-implementation-13128440384193574434from
bolt-perf-ui-refinement-1978427563272863595

Conversation

@mx57

@mx57 mx57 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

This submission introduces several key improvements to the desktop pet application, focusing on performance, user experience, and code quality.

Key changes:

  • Dynamic FPS: The animation system now adapts its frame rate based on the pet's current state, reducing CPU usage during idle/sleeping states while providing smoother animations during high-activity states like 'overheat'.
  • Window Opacity: A new configuration option and UI slider allow users to adjust the pet's transparency, making it less intrusive on the desktop.
  • Refined Petting Interaction: The 'petting' detection was made more robust by requiring actual mouse movement over the pet and implementing a cooldown, preventing accidental triggers and point farming.
  • UI Bug Fixes: Corrected a layout issue in the statistics dialog where the speed record was overlapping or misaligned.
  • Logging Cleanup: Removed redundant database logging calls for events like feeding and pomodoro sessions, ensuring a cleaner activity history.
  • Code Refactoring: Cleaned up deprecated methods and optimized data synchronization between memory and the SQLite database.

Technical impact: Improved CPU efficiency, better interaction feedback, and enhanced user customization.


PR created automatically by Jules for task 1978427563272863595 started by @mx57

As Bolt ⚡, I have implemented a set of optimizations and refinements:

1. ⚡ **Perf: Dynamic FPS for SVG Animations**
   - Sleeping state now runs at 4 FPS (saving CPU).
   - Overheat and Shaking states run at 20 FPS (smoother feedback).
   - Other states run at 12 FPS.

2. 🎨 **UI/UX: Window Opacity & Stats Fix**
   - Added 'Opacity' setting (20-100%) to Config and Settings UI.
   - Fixed layout in StatsDialog Progress tab: Points and Speed Record are now aligned.
   - History tab icons and formatting refined.

3. 🐛 **Fix: Petting Logic & Redundant Logs**
   - Petting now requires active mouse movement (>30px) and has a 500ms cooldown.
   - Removed double logging of events in TrayMenu and InputManager.
   - Removed deprecated `flush_points` in favor of `flush_all`.

4. 🧹 **Clean: Code Cleanup**
   - Refactored achievement checks to use cached stats more effectively.
   - Optimized InputManager data flushing.

All tests passed. Verified in headless environment with mocks.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…4' into bolt-perf-ui-refinement-1978427563272863595
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.

1 participant