[BUG]: New window animation has significant lag when animation is enabled #666

Closed
opened 2026-01-05 14:52:15 +01:00 by adam · 1 comment
Owner

Originally created by @XDID on GitHub (Aug 20, 2025).

Summary

When I enable animations in komorebi, opening a new window results in a noticeable delay or lag in the animation. The new window appears after a significant pause, which disrupts the smooth user experience. This issue does not occur when animations are disabled

https://github.com/user-attachments/assets/b7ab8a12-d823-456c-894b-3aea2d5645cf

Version Information

OS Name: Microsoft Windows 11 专业版
OS Version: 10.0.22621 暂缺 Build 22621

komorebic 0.1.37
tag:v0.1.37
commit_hash:00384ce3
build_time:2025-05-17 19:16:53 +00:00
build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json",
  "app_specific_configuration_path": "C:\\Users\\Administrator\\applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 0,
  "default_container_padding": -1,
  "border": false,
  "border_width": 0,
  "border_offset": -1,
  "mouse_follows_focus": false,
  "animation": {
    "enabled": true,
    "duration": 250,
    "fps": 60,
    "style": "Linear"
  },
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "unfocused_border": "Base03",
    "bar_accent": "Base0D"
  },
  "toggle_float_placement": "CenterAndResize",
}

Hotkey Configuration

alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o : komorebic reload-configuration
alt + shift + q : komorebic close
alt + m : komorebic minimize

alt + h : komorebic focus left
alt + j : komorebic focus down
alt + k : komorebic focus up
alt + l : komorebic focus right
alt + shift + p : komorebic cycle-focus previous
alt + shift + n : komorebic cycle-focus next

alt + shift + h : komorebic move left
alt + shift + j : komorebic move down
alt + shift + k : komorebic move up
alt + shift + l : komorebic move right

alt + oem_plus : komorebic resize-axis horizontal increase
alt + oem_minus : komorebic resize-axis horizontal decrease
alt + shift + oem_plus : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

alt + shift + space : komorebic toggle-float
alt + shift + f : komorebic toggle-monocle

alt + shift + r : komorebic retile

alt + 1 : komorebic focus-workspace 0
alt + 2 : komorebic focus-workspace 1
alt + 3 : komorebic focus-workspace 2
alt + 4 : komorebic focus-workspace 3

alt + shift + 1 : komorebic move-to-workspace 0
alt + shift + 2 : komorebic move-to-workspace 1
alt + shift + 3 : komorebic move-to-workspace 2
alt + shift + 4 : komorebic move-to-workspace 3

Output of komorebic check

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Administrator

Looking for configuration files in C:\Users\Administrator

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\Administrator.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

Originally created by @XDID on GitHub (Aug 20, 2025). ### Summary When I enable animations in komorebi, opening a new window results in a noticeable delay or lag in the animation. The new window appears after a significant pause, which disrupts the smooth user experience. This issue does not occur when animations are disabled https://github.com/user-attachments/assets/b7ab8a12-d823-456c-894b-3aea2d5645cf ### Version Information OS Name: Microsoft Windows 11 专业版 OS Version: 10.0.22621 暂缺 Build 22621 komorebic 0.1.37 tag:v0.1.37 commit_hash:00384ce3 build_time:2025-05-17 19:16:53 +00:00 build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json", "app_specific_configuration_path": "C:\\Users\\Administrator\\applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 0, "default_container_padding": -1, "border": false, "border_width": 0, "border_offset": -1, "mouse_follows_focus": false, "animation": { "enabled": true, "duration": 250, "fps": 60, "style": "Linear" }, "theme": { "palette": "Base16", "name": "Ashes", "unfocused_border": "Base03", "bar_accent": "Base0D" }, "toggle_float_placement": "CenterAndResize", } ``` ### Hotkey Configuration alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration alt + shift + q : komorebic close alt + m : komorebic minimize alt + h : komorebic focus left alt + j : komorebic focus down alt + k : komorebic focus up alt + l : komorebic focus right alt + shift + p : komorebic cycle-focus previous alt + shift + n : komorebic cycle-focus next alt + shift + h : komorebic move left alt + shift + j : komorebic move down alt + shift + k : komorebic move up alt + shift + l : komorebic move right alt + oem_plus : komorebic resize-axis horizontal increase alt + oem_minus : komorebic resize-axis horizontal decrease alt + shift + oem_plus : komorebic resize-axis vertical increase alt + shift + oem_minus : komorebic resize-axis vertical decrease alt + shift + space : komorebic toggle-float alt + shift + f : komorebic toggle-monocle alt + shift + r : komorebic retile alt + 1 : komorebic focus-workspace 0 alt + 2 : komorebic focus-workspace 1 alt + 3 : komorebic focus-workspace 2 alt + 4 : komorebic focus-workspace 3 alt + shift + 1 : komorebic move-to-workspace 0 alt + shift + 2 : komorebic move-to-workspace 1 alt + shift + 3 : komorebic move-to-workspace 2 alt + shift + 4 : komorebic move-to-workspace 3 ### Output of komorebic check No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Administrator Looking for configuration files in C:\Users\Administrator Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\Administrator\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
adam added the bug label 2026-01-05 14:52:15 +01:00
adam closed this issue 2026-01-05 14:52:15 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Aug 20, 2025):

This is always going to be dependent on user hardware until Microsoft provides first class animation APIs so that we don't have to emulate animation by spamming calls to update window positions

@LGUG2Z commented on GitHub (Aug 20, 2025): This is always going to be dependent on user hardware until Microsoft provides first class animation APIs so that we don't have to emulate animation by spamming calls to update window positions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#666