Skip to content

Optimize performance for animations.#316

Open
Lwrless wants to merge 2 commits intomeshtastic:mainfrom
Lwrless:main
Open

Optimize performance for animations.#316
Lwrless wants to merge 2 commits intomeshtastic:mainfrom
Lwrless:main

Conversation

@Lwrless
Copy link

@Lwrless Lwrless commented Feb 13, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Documentation update
  • Other (please describe):
    • Performance

Testing

  • I have tested these changes locally
  • I have added/updated tests as appropriate
  • All existing tests pass

Hello! Thanks for maintaining this project. While using the flasher site to flash my Meshtastic devices, I noticed a couple of minor issues and put together some improvements.

This PR:

  • Reduced CPU usage by 8%+ (measured on idle / typical page usage)
  • Adjusted animation logic to avoid unnecessary style recalculations
  • Fixed a minor UI issue where button was misaligned on the page

@CLAassistant
Copy link

CLAassistant commented Feb 13, 2026

CLA assistant check
All committers have signed the CLA.

@vercel
Copy link

vercel bot commented Feb 13, 2026

@Lwrless is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes animation performance by reducing CPU usage through improved animation handling and CSS optimizations. The changes focus on minimizing unnecessary style recalculations and improving rendering efficiency.

Changes:

  • Replaced pseudo-element animations with dedicated elements to reduce style recalculation overhead
  • Introduced hover-based animation control to conditionally enable animations only when needed
  • Added explicit type annotations and improved code structure for better maintainability

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
types/resources.ts Added explicit type annotation to vendorCobrandingTag
tailwind.config.js Added new bounce-in-place animation keyframe for optimized bouncing effect
components/LogoHeader.vue Refactored glow animation from pseudo-element to dedicated element with performance optimizations
components/Firmware.vue Improved code structure with better indentation, added missing keys to v-for loops, and strengthened type safety
components/Device.vue Added hover state management and conditional animation triggering, improved modal layout structure
app.vue Connected hover state to Device component, cleaned up formatting and code style

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.

2 participants