[PR #454] [CLOSED] Request frame before paint #549

Closed
opened 2026-02-28 14:33:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jpochyla/psst/pull/454
Author: @jacksongoode
Created: 2/14/2024
Status: Closed

Base: masterHead: jackson/request-frame-link


📝 Commits (3)

📊 Changes

1 file changed (+22 additions, -17 deletions)

View changed files

📝 psst-gui/src/widget/link.rs (+22 -17)

📄 Description

This resolves issue #367 by requesting an animation frame before we paint. However, it's at the expense of CPU cycles. It seems that CPU usage, at least on my machine, went from 5% to around 9% when quickly moving the cursor around on the page.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jpochyla/psst/pull/454 **Author:** [@jacksongoode](https://github.com/jacksongoode) **Created:** 2/14/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `jackson/request-frame-link` --- ### 📝 Commits (3) - [`e3370b4`](https://github.com/jpochyla/psst/commit/e3370b427f37d9f4be67047a01ad6468dcb562fd) Request frame before paint - [`bd1d3d1`](https://github.com/jpochyla/psst/commit/bd1d3d1a47a6ec2ac83d774eb28263f6e960b789) Funny :) - [`7e4d876`](https://github.com/jpochyla/psst/commit/7e4d87619dbff692f93271c97c657ea9d0808772) Small paint improvements ### 📊 Changes **1 file changed** (+22 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `psst-gui/src/widget/link.rs` (+22 -17) </details> ### 📄 Description This resolves issue #367 by requesting an animation frame before we paint. However, it's at the expense of CPU cycles. It seems that CPU usage, at least on my machine, went from 5% to around 9% when quickly moving the cursor around on the page. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:33:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#549
No description provided.