[vim/vim] GTK4 GUI is slow (Issue #20429)

9 views
Skip to first unread message

Foxe Chen

unread,
Jun 4, 2026, 9:47:54 PMJun 4
to vim/vim, Subscribed
64-bitman created an issue (vim/vim#20429)

There is noticable lag when scrolling down or up a file. Especially when my laptop is unplugged (running on battery). Using Vim built with #20324 is much smoother, and consumes roughly 6W of power less, which is a lot.

This is the current GTK4 GUI:
https://github.com/user-attachments/assets/894895b6-9aad-498a-8aa8-da3623d90864

This is #20324:

https://github.com/user-attachments/assets/4bf02b36-e276-4875-bc2c-5b94afc6fd18

Both were tested using same optimized build flags and on battery (same power profile)

I won't open #20324 again, but I will try working on a different PR that is hopefully a bit simpler.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20429@github.com>

dezza

unread,
Jul 10, 2026, 7:37:06 PM (16 hours ago) Jul 10
to vim/vim, Subscribed
dezza left a comment (vim/vim#20429)

I'm wondering why not deprecate the software rendering on gtk4. Since gtk4 only have full widget drawing it requires major refactoring which is unlikely.

I believe hwaccel should be enabled by default and sw rendering shouldn't even have a place in the source as it is unusable in that state.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20429/4940391987@github.com>

Foxe Chen

unread,
Jul 10, 2026, 7:42:48 PM (16 hours ago) Jul 10
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20429)

I'm wondering why not deprecate the software rendering on gtk4. Since gtk4 only have full widget drawing it requires major refactoring to be faster which is unlikely.

I believe hwaccel should be enabled by default and sw rendering shouldn't even have a place in the source as it is unusable in that state.

I plan on removing the cairo code (software rendering path) soon, so that the hwaccel is default


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20429/4940427877@github.com>

dezza

unread,
Jul 10, 2026, 8:01:51 PM (16 hours ago) Jul 10
to vim/vim, Subscribed
dezza left a comment (vim/vim#20429)

Good job on the hwaccel btw!


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20429/4940587669@github.com>

Reply all
Reply to author
Forward
0 new messages