Skip to content

Turn on GPU acceleration, update the download progress bar - #10

Merged
Tohrusky merged 1 commit into
EutropicAI:mainfrom
HychaoWang:main
Feb 16, 2026
Merged

Turn on GPU acceleration, update the download progress bar#10
Tohrusky merged 1 commit into
EutropicAI:mainfrom
HychaoWang:main

Conversation

@HychaoWang

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @HychaoWang, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on improving application performance and user experience through several key optimizations. It enables GPU acceleration for non-Windows platforms, providing a snappier interface. The model download process now offers more detailed progress information, enhancing transparency for users. Furthermore, image detection and loading have been refactored for greater efficiency, and log scrolling is now throttled to maintain UI fluidity during intensive operations.

Highlights

  • Conditional GPU Acceleration: Hardware acceleration is now selectively disabled only for Windows, allowing macOS and Linux users to benefit from GPU-accelerated rendering for improved performance.
  • Enhanced Model Download Progress Bar: The model download progress bar has been significantly updated to display real-time downloaded and total bytes, providing a more informative user experience during model downloads.
  • Optimized Image Detection and Loading: Initial image loading from the file watcher now uses a batch processing approach, and new images are efficiently inserted into the frontend's sorted list using a binary search algorithm, reducing rendering overhead and improving responsiveness.
  • Throttled Log Scrolling: The automatic scrolling for logs has been throttled to prevent excessive DOM operations, especially during periods of rapid log updates, leading to smoother UI performance.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/fileWatcher.ts
    • Modified the initial image detection logic to send existing images to the frontend in a single batch via a new IPC channel, rather than individually.
  • src/main/index.ts
    • Updated the hardware acceleration setting to disable it only for Windows, explicitly enabling it for macOS and Linux to leverage GPU rendering.
  • src/main/modelManager.ts
    • Extended the MODEL_DOWNLOAD_PROGRESS IPC event to include downloadedBytes and totalBytes for more granular progress reporting.
  • src/renderer/src/store/zimageStore.ts
    • Updated the ZImageModelDownloadProgress interface to include downloadedBytes and totalBytes for detailed progress tracking.
    • Implemented a insertImageSorted utility function using binary search to efficiently add new images to the generatedImages array while maintaining descending mtime order.
    • Added a new IPC listener for BATCH_IMAGES_DETECTED to handle the initial bulk loading of images, filtering out duplicates.
    • Refactored the NEW_IMAGE_DETECTED IPC listener and addGeneratedImage action to utilize the new insertImageSorted function for single image additions.
  • src/renderer/src/views/ZImageGenerate.vue
    • Introduced throttling to the log scrolling watch effect to prevent performance issues from frequent DOM manipulations.
    • Added a formatBytes helper function to convert byte counts into human-readable strings (e.g., KB, MB, GB).
    • Changed the v-for key for generated images from index to img.path for better list rendering performance and stability.
    • Updated the download progress display to show downloadedBytes and totalBytes using the formatBytes utility.
    • Added new CSS styles for the enhanced download progress information, including flexbox layout and specific text styling.
  • src/shared/const/ipc.ts
    • Added a new BATCH_IMAGES_DETECTED entry to the IpcChannelOn enum to support batch image transfer.
  • src/shared/type/zimage.ts
    • Extended the ZImageModelDownloadProgress interface with downloadedBytes and totalBytes properties.
Activity
  • No specific activity (comments, reviews, etc.) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

The pull request introduces several performance and user experience improvements. GPU acceleration is now conditionally disabled only for Windows, allowing macOS and Linux users to benefit from hardware acceleration. Image detection has been optimized by implementing batch processing for initial loads and an efficient binary search insertion for new individual images, reducing DOM operations and improving responsiveness. The log scrolling mechanism has been throttled to prevent excessive updates during generation. Additionally, the model download progress bar now displays more detailed information, including downloaded and total bytes, enhancing user feedback.

@Tohrusky
Tohrusky merged commit a659ac3 into EutropicAI:main Feb 16, 2026
6 checks passed
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