Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Compositor: pace frames to the display's refresh on a fixed grid when the driver completes page flips at once (vmwgfx drew 500-580 fps at 60 Hz; now 59.8 fps, p99 18.4 ms); the same grid paces headless sessions (no more 57 fps from millisecond waits). Results of the 0.8.4.1 to 0.8.5~rc1 update on VMware Fusion: whole system 606-622 MB used, PSS 316 MB; paper 7.1/7.2 and RESULTS updated

Federico Pereira415762190cd9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b9a440..744cd12 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -80,6 +80,13 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),
### Fixed
+- **On virtual cards that don't wait for the screen's refresh, the desktop drew hundreds of frames a
+ second.** The VMware graphics driver (`vmwgfx`) completes each page flip at once, so the compositor and
+ every app followed it at 500–580 frames a second on a 60 Hz display, using CPU for frames nobody sees.
+ LordOS now notices flips that complete within an eighth of a refresh, again and again, and paces frames
+ to the display's refresh on a fixed grid (59.8 frames a second at 60 Hz measured, p99 18.4 ms); real
+ graphics cards are unaffected. The same grid also paces sessions without a monitor, so waiting in whole
+ milliseconds no longer turns 60 frames a second into 57.
- **The package now depends on `libwayland-egl1` when the Test Bench is built with its 3D view**, so
`lordos-testbench` starts on a system that didn't have it.
- **Remote desktop video came in blocks for the first minutes, and had no sound.** The browser's
diff --git a/docs/RESULTS.md b/docs/RESULTS.md
index 77d15f3..f7cb6ba 100644
--- a/docs/RESULTS.md
+++ b/docs/RESULTS.md
@@ -35,4 +35,6 @@ the two apart.
| Version | Machine | Conditions | What |
|---|---|---|---|
+| 0.8.5~rc1 | `vmware-fusion` | VMware Fusion VM, virtual GPU (`vmwgfx`, SVGA3D), 1280×800 @ 60 Hz, updated from 0.8.4.1 by `apt install` | whole system 606–622 MB used one minute after sign-in, PSS of all processes 316 MB (login screen 78 MB of it); 59.8 fps at 60 Hz, p99 18.4 ms; 17 Wayland checks passed; boot 7.5 s |
+| 0.8.5~rc1 | `vmware-fusion-before-pacing` | the same, before software vblank pacing | 524 fps at 60 Hz: the driver completes flips at once |
| 0.8.5-dev | `vm116-headless` | Proxmox VM, no GPU, headless session (remote desktop only), development install | sysreport, testbench (16 Wayland checks passed; `llvmpipe`; no frame presented without a monitor), boot |
diff --git a/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/README.md b/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/README.md
new file mode 100644
index 0000000..f54d77f
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/README.md
@@ -0,0 +1,6 @@
+# vmware-fusion-before-pacing — LordOS 0.8.5~rc1
+
+The Test Bench's report on the VMware Fusion VM (see `../vmware-fusion/`) with the 0.8.5~rc1 package as
+built, before software vblank pacing: the `vmwgfx` driver completes page flips at once instead of on
+vblank, so the compositor drew 494–583 frames a second while dragging a window (session log) and the bench
+524 frames a second (`fps` here), every one "presented", at a 60 Hz mode. A short run (no 3D, no input).
diff --git a/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/testbench.json b/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/testbench.json
new file mode 100644
index 0000000..8c5e6f2
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion-before-pacing/testbench.json
@@ -0,0 +1 @@
+{"tool":"lordos-testbench","v":1,"at":1793045028000,"window":[1175,729],"frames":979,"fps":524.35,"frameMsAvg":1.647,"frameMsMax":2.439,"frameMsP50":1.600,"frameMsP99":2.418,"missedBudget":0,"noFreeBuffer":0,"presentation":true,"presented":978,"discarded":0,"refreshHz":60.000,"vblankSkips":6,"zeroCopy":0,"keyboard":true,"pointer":true,"repeat":[30,500],"globals":[{"interface":"wl_shm","version":2},{"interface":"wl_compositor","version":6},{"interface":"wl_subcompositor","version":1},{"interface":"zxdg_output_manager_v1","version":3},{"interface":"wp_fractional_scale_manager_v1","version":1},{"interface":"wl_seat","version":9},{"interface":"wl_data_device_manager","version":3},{"interface":"zwp_primary_selection_device_manager_v1","version":1},{"interface":"xdg_wm_base","version":6},{"interface":"zxdg_decoration_manager_v1","version":1},{"interface":"zwp_linux_dmabuf_v1","version":4},{"interface":"wp_presentation","version":1},{"interface":"wp_viewporter","version":1},{"interface":"zwp_relative_pointer_manager_v1","version":1},{"interface":"zwp_pointer_constraints_v1","version":1},{"interface":"wp_cursor_shape_manager_v1","version":1},{"interface":"zwp_idle_inhibit_manager_v1","version":1},{"interface":"org_kde_kwin_server_decoration_manager","version":1},{"interface":"zwp_pointer_gestures_v1","version":3},{"interface":"wl_output","version":4}],"outputRefreshHz":60.000,"latency":{"n":0,"avgMs":0.00,"notPresented":0},"gl":{"renderer":"","vendor":"","version":"","kind":"","error":"","drawMs":0.000,"frames":0,"presented":0,"zeroCopy":0},"checks":[{"id":"wl_shm formats","state":"pass","detail":"2 FORMATS, ARGB8888 YES, XRGB8888 YES"},{"id":"wl_output modes","state":"pass","detail":"1 OUTPUT: Virtual-1 1280X800 @ 60.00 HZ, SCALE 1"},{"id":"zxdg_output layout","state":"pass","detail":"LOGICAL 1280X800 AT 0,0"},{"id":"fractional scale","state":"pass","detail":"PREFERRED 1.000"},{"id":"subsurface + viewport","state":"pass","detail":"SHOWN (FRAME CALLBACK), VIEWPORT 48 -> 96"},{"id":"xdg popup","state":"pass","detail":"CONFIGURED 200X100, MAPPED"},{"id":"maximize","state":"pass","detail":"STATE SET (1175X729) AND CLEARED"},{"id":"fullscreen","state":"pass","detail":"STATE SET (1280X800) AND CLEARED"},{"id":"linux-dmabuf","state":"pass","detail":"V4: DEVICE renderD128, 4 FORMAT ENTRIES, 1 TRANCHE"},{"id":"clipboard round trip","state":"pass","detail":"TEXT CAME BACK INTACT"},{"id":"primary selection","state":"pass","detail":"TEXT CAME BACK INTACT"},{"id":"cursor shape","state":"untested","detail":"NEEDS THE POINTER OVER THE WINDOW"},{"id":"relative pointer","state":"untested","detail":"BOUND: MOVE THE MOUSE"},{"id":"pointer constraints","state":"info","detail":"BOUND (LOCK AND CONFINE: NOT TRIED YET)"},{"id":"pointer gestures","state":"untested","detail":"BOUND V3: SWIPE OR PINCH ON A TOUCHPAD"},{"id":"idle inhibit","state":"pass","detail":"INHIBITOR CREATED AND RELEASED"},{"id":"seat","state":"pass","detail":"wl_seat V9 OFFERED"},{"id":"xdg-shell","state":"pass","detail":"xdg_wm_base V6 OFFERED"},{"id":"server decorations","state":"pass","detail":"zxdg_decoration_manager_v1 V1 OFFERED"},{"id":"presentation time","state":"pass","detail":"wp_presentation V1 OFFERED"},{"id":"input methods (text-input v3)","state":"info","detail":"zwp_text_input_manager_v3 NOT OFFERED"},{"id":"xdg-activation","state":"info","detail":"xdg_activation_v1 NOT OFFERED"},{"id":"single-pixel buffers","state":"info","detail":"wp_single_pixel_buffer_manager_v1 NOT OFFERED"},{"id":"tearing control (games)","state":"info","detail":"wp_tearing_control_manager_v1 NOT OFFERED"},{"id":"content type","state":"info","detail":"wp_content_type_manager_v1 NOT OFFERED"},{"id":"drawing tablets","state":"info","detail":"zwp_tablet_manager_v2 NOT OFFERED"},{"id":"idle notify","state":"info","detail":"ext_idle_notifier_v1 NOT OFFERED"},{"id":"VR headsets (drm-lease)","state":"info","detail":"wp_drm_lease_device_v1 NOT OFFERED"}]}
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/README.md b/results/0.8.5~rc1-beta/vmware-fusion/README.md
new file mode 100644
index 0000000..5f8bb3b
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/README.md
@@ -0,0 +1,34 @@
+# vmware-fusion — LordOS 0.8.5~rc1-beta
+
+Collected 2026-10-26T20:20Z with `tools/results/collect.sh vmware-fusion` (docs/RESULTS.md); the report's
+own version field says `0.8.5~rc1-beta`.
+
+**Conditions:** VMware Fusion on a Mac (Intel Core i9-10900, 4 cores and 4.7 GB given to the VM), the
+virtual display at 1280×800 @ 60 Hz on the `vmwgfx` driver with GPU composition (`SVGA3D`, a virtual GPU on
+the host). LordOS 0.8.4.1 installed from the ISO earlier, updated to the 0.8.5~rc1 package with `apt install`
+(no migration was needed; code verified, 10 files) and then `lord-server` replaced by the build with
+software vblank pacing (below). Measured about one minute after a reboot and sign-in, with Files and About
+LordOS open; the login screen's `lord-server` stays running after sign-in (it serves user switching and
+locking).
+
+**What it shows:**
+- `free -m` "used": 606–622 MB for the whole system; the PSS of every process adds up to 316 MB
+ (`memory-all.txt`, taken with sudo): the session's `lord-server` 110 MB, the login screen's 78 MB,
+ `systemd-journald` 20 MB, `lord-doc` 15 MB (opened by Files' thumbnails), PipeWire and WirePlumber 16 MB.
+ The rest of "used" is the kernel (slab 81 MB, vmalloc 35 MB, stacks and page tables 12 MB) and the
+ graphics driver's buffers, which no process's PSS counts.
+- The Test Bench: 59.8 frames a second at 60 Hz, p50 16.66 ms, p99 18.4 ms, no frame over budget, 1495
+ presented, 0 discarded; 17 Wayland checks passed, 0 failed; 3D on `SVGA3D` (virtual GPU), 0.76 ms a
+ frame. Boot: 7.5 s (3.4 kernel + 4.1 userspace).
+- `../vmware-fusion-before-pacing/`: the same machine before the fix: `vmwgfx` completes page flips at
+ once instead of on vblank, so the compositor and the bench ran at 524–583 frames a second.
+
+Reproduce:
+
+```sh
+lordos-sysreport report --json > sysreport.json
+lordos-testbench --gl --auto 25 > testbench.json # inside a LordOS session
+free -m # whole system
+sudo sh -c 'for f in /proc/[0-9]*/smaps_rollup; do ...' # PSS per process: see tools/results/collect.sh
+systemd-analyze
+```
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/boot.txt b/results/0.8.5~rc1-beta/vmware-fusion/boot.txt
new file mode 100644
index 0000000..4ffcd90
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/boot.txt
@@ -0,0 +1,2 @@
+Startup finished in 3.419s (kernel) + 4.065s (userspace) = 7.484s
+graphical.target reached after 4.064s in userspace.
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/memory-all.txt b/results/0.8.5~rc1-beta/vmware-fusion/memory-all.txt
new file mode 100644
index 0000000..8fda505
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/memory-all.txt
@@ -0,0 +1,44 @@
+ 110.1 lord-server
+ 78.2 lord-server
+ 19.9 systemd-journal
+ 15.4 lord-doc
+ 9.8 wireplumber
+ 6.6 pipewire
+ 6.3 udisksd
+ 5.8 systemd
+ 4.6 systemd
+ 4.3 systemd-udevd
+ 4.3 VGAuthService
+ 4.1 lord-maild
+ 4.0 vmtoolsd
+ 3.4 cupsd
+ 3.4 sshd-session
+ 3.0 wpa_supplicant
+ 2.5 pipewire-pulse
+ 2.5 sudo
+ 2.4 sshd
+ 2.3 sshd-session
+ 2.3 systemd-logind
+ 2.1 polkitd
+ 1.9 (sd-pam)
+ 1.8 systemd-timesyn
+ 1.5 power-profiles-
+ 1.4 lord-vault
+ 1.3 lord-admin
+ 1.3 bash
+ 1.3 dbus-daemon
+ 1.1 lord-sessiond
+ 1.1 pipewire
+ 0.8 dbus-daemon
+ 0.7 lord-sessiond
+ 0.7 lord-netperm
+ 0.7 avahi-daemon
+ 0.5 mpris-proxy
+ 0.4 lord-netd
+ 0.3 lord-netd
+ 0.3 avahi-daemon
+ 0.3 sh
+ 0.3 awk
+ 0.3 sort
+ 0.2 lord-fand
+ 315.7 total PSS, all processes
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/memory.txt b/results/0.8.5~rc1-beta/vmware-fusion/memory.txt
new file mode 100644
index 0000000..5619d2a
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/memory.txt
@@ -0,0 +1,20 @@
+# free -m (whole system; 'used' excludes the reclaimable page cache)
+ total used free shared buff/cache available
+Mem: 4861 622 4175 2 279 4238
+Swap: 2047 0 2047
+
+# PSS per process, MB (shared pages divided among the processes that map them)
+# only processes this user can read; run with sudo for all
+ 9.8 wireplumber
+ 6.6 pipewire
+ 2.5 pipewire-pulse
+ 1.4 bash
+ 1.1 pipewire
+ 0.8 dbus-daemon
+ 0.5 mpris-proxy
+ 0.3 awk
+ 0.3 sort
+ 0.3 tail
+ 0.2 sh
+ 0.2 sh
+ 23.9 total of the processes listed
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/sysreport.json b/results/0.8.5~rc1-beta/vmware-fusion/sysreport.json
new file mode 100644
index 0000000..34468f6
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/sysreport.json
@@ -0,0 +1 @@
+{"schema":1,"date":"2026-10-26","machine":{"vendor":"VMware, Inc.","product":"VMware20,1","version":"","boardVendor":"Intel Corporation","boardName":"440BX Desktop Reference Platform","chassis":"vm","model":"","biosVendor":"VMware, Inc.","biosVersion":"VMW201.00V.24866131.B64.2507211911","biosDate":"07/21/2025","firmware":"uefi","secureBoot":false,"virtualization":"vmware"},"cpu":{"model":"Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz","vendor":"GenuineIntel","arch":"x86_64","sockets":7,"cores":4,"threads":4,"minMHz":0,"maxMHz":0,"governor":"","l1dKB":32,"l1iKB":32,"l2KB":256,"l3KB":20480,"flags":"sse4_2 avx avx2 fma aes","microcode":"0x100"},"memory":{"totalKB":4978020,"swapKB":2097148,"zram":[]},"gpus":[{"card":"card0","bus":"pci","vendorId":"15ad","deviceId":"0405","vendor":"VMware","device":"SVGA II Adapter","driver":"vmwgfx","bootVga":true,"renderNode":true,"connectors":8,"connected":1}],"displays":[{"card":"card0","connector":"Virtual-1","enabled":true,"name":"","manufacturer":"","product":"","year":0,"widthCm":0,"heightCm":0,"diagonalTenths":0,"nativeWidth":0,"nativeHeight":0,"mode":"1280x800"}],"storage":[{"name":"sda","model":"VMware Virtual S","vendor":"VMware,","bytes":21474836480,"rotational":true,"removable":false,"transport":"scsi","link":""},{"name":"sr0","model":"VMware SATA CD01","vendor":"NECVMWar","bytes":1073741312,"rotational":false,"removable":true,"transport":"sata","link":""}],"pci":[{"class":"060000","className":"Host bridge","vendorId":"8086","deviceId":"7192","vendor":"Intel Corporation","device":"440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled)","driver":""},{"class":"060400","className":"PCI bridge","vendorId":"8086","deviceId":"7191","vendor":"Intel Corporation","device":"440BX/ZX/DX - 82443BX/ZX/DX AGP bridge","driver":""},{"class":"060100","className":"ISA bridge","vendorId":"8086","deviceId":"7110","vendor":"Intel Corporation","device":"82371AB/EB/MB PIIX4 ISA","driver":""},{"class":"01018a","className":"IDE interface","vendorId":"8086","deviceId":"7111","vendor":"Intel Corporation","device":"82371AB/EB/MB PIIX4 IDE","driver":"ata_piix"},{"class":"068000","className":"Bridge","vendorId":"8086","deviceId":"7113","vendor":"Intel Corporation","device":"82371AB/EB/MB PIIX4 ACPI","driver":""},{"class":"088000","className":"System peripheral","vendorId":"15ad","deviceId":"0740","vendor":"VMware","device":"Virtual Machine Communication Interface","driver":"vmw_vmci"},{"class":"030000","className":"VGA compatible controller","vendorId":"15ad","deviceId":"0405","vendor":"VMware","device":"SVGA II Adapter","driver":"vmwgfx"},{"class":"010000","className":"SCSI storage controller","vendorId":"1000","deviceId":"0030","vendor":"Broadcom / LSI","device":"53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI","driver":"mptspi"},{"class":"060401","className":"PCI bridge","vendorId":"15ad","deviceId":"0790","vendor":"VMware","device":"PCI bridge","driver":""},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"060400","className":"PCI bridge","vendorId":"15ad","deviceId":"07a0","vendor":"VMware","device":"PCI Express Root Port","driver":"pcieport"},{"class":"0c0300","className":"USB controller","vendorId":"15ad","deviceId":"0774","vendor":"VMware","device":"USB1.1 UHCI Controller","driver":"uhci_hcd"},{"class":"020000","className":"Ethernet controller","vendorId":"8086","deviceId":"100f","vendor":"Intel Corporation","device":"82545EM Gigabit Ethernet Controller (Copper)","driver":"e1000"},{"class":"040300","className":"Audio device","vendorId":"15ad","deviceId":"1977","vendor":"VMware","device":"HD Audio Controller","driver":"snd_hda_intel"},{"class":"0c0320","className":"USB controller","vendorId":"15ad","deviceId":"0770","vendor":"VMware","device":"USB2 EHCI Controller","driver":"ehci-pci"},{"class":"010601","className":"SATA controller","vendorId":"15ad","deviceId":"07e0","vendor":"VMware","device":"SATA AHCI controller","driver":"ahci"}],"usb":[{"vendorId":"0e0f","productId":"000b","vendor":"VMware, Inc.","product":"","class":"ef","speedMbps":480,"driver":"uvcvideo"},{"vendorId":"048d","productId":"1234","vendor":"Integrated Technology Express, Inc.","product":"Chipsbank CBM2199 Flash Drive","class":"00","speedMbps":480,"driver":"usb-storage"},{"vendorId":"0e0f","productId":"0003","vendor":"VMware, Inc.","product":"Virtual Mouse","class":"00","speedMbps":12,"driver":"usbhid"},{"vendorId":"0e0f","productId":"0002","vendor":"VMware, Inc.","product":"Virtual USB Hub","class":"09","speedMbps":12,"driver":"hub"}],"network":[{"kind":"ethernet","driver":"e1000","up":true,"speedMbps":1000}],"audio":["HD-Audio Generic"],"bluetooth":[],"power":[{"kind":"ac","vendor":"","model":"","technology":"","status":"","capacity":null,"health":null,"online":1}],"thermal":[{"sensor":"ACAD","milliC":null,"fans":0}],"software":{"os":"Debian GNU/Linux 13 (trixie)","osId":"debian","osVersion":"13","kernel":"6.12.113+deb13-amd64","lordos":"0.8.5~rc1-beta","lsm":"lockdown,capability,landlock,yama,apparmor,tomoyo,bpf,ipe,ima,evm","landlockAbi":6,"bpfLsm":true,"cgroup2":true,"kernelConfig":{"CONFIG_SECURITY_LANDLOCK":"y","CONFIG_SECCOMP_FILTER":"y","CONFIG_USER_NS":"y","CONFIG_BPF_SYSCALL":"y","CONFIG_BPF_JIT":"y","CONFIG_CGROUP_BPF":"y","CONFIG_BPF_LSM":"y","CONFIG_INET_DIAG_DESTROY":"y","CONFIG_INET_UDP_DIAG":"m","CONFIG_MEMCG":"y","CONFIG_PSI":"y","CONFIG_ZRAM":"m","CONFIG_DRM":"m","CONFIG_UHID":"m"},"services":{"lord-sessiond":true,"lord-netd":true,"lord-netperm":true,"lord-fand":true}}}
diff --git a/results/0.8.5~rc1-beta/vmware-fusion/testbench.json b/results/0.8.5~rc1-beta/vmware-fusion/testbench.json
new file mode 100644
index 0000000..a9ae3de
--- /dev/null
+++ b/results/0.8.5~rc1-beta/vmware-fusion/testbench.json
@@ -0,0 +1 @@
+{"tool":"lordos-testbench","v":1,"at":1793046019000,"window":[1175,729],"frames":1497,"fps":59.82,"frameMsAvg":16.668,"frameMsMax":23.409,"frameMsP50":16.656,"frameMsP99":18.398,"missedBudget":0,"noFreeBuffer":0,"presentation":true,"presented":1495,"discarded":0,"refreshHz":60.000,"vblankSkips":8,"zeroCopy":0,"keyboard":true,"pointer":true,"repeat":[30,500],"globals":[{"interface":"wl_shm","version":2},{"interface":"wl_compositor","version":6},{"interface":"wl_subcompositor","version":1},{"interface":"zxdg_output_manager_v1","version":3},{"interface":"wp_fractional_scale_manager_v1","version":1},{"interface":"wl_seat","version":9},{"interface":"wl_data_device_manager","version":3},{"interface":"zwp_primary_selection_device_manager_v1","version":1},{"interface":"xdg_wm_base","version":6},{"interface":"zxdg_decoration_manager_v1","version":1},{"interface":"zwp_linux_dmabuf_v1","version":4},{"interface":"wp_presentation","version":1},{"interface":"wp_viewporter","version":1},{"interface":"zwp_relative_pointer_manager_v1","version":1},{"interface":"zwp_pointer_constraints_v1","version":1},{"interface":"wp_cursor_shape_manager_v1","version":1},{"interface":"zwp_idle_inhibit_manager_v1","version":1},{"interface":"org_kde_kwin_server_decoration_manager","version":1},{"interface":"zwp_pointer_gestures_v1","version":3},{"interface":"wl_output","version":4}],"outputRefreshHz":60.000,"latency":{"n":0,"avgMs":0.00,"notPresented":0},"gl":{"renderer":"SVGA3D; build: RELEASE; LLVM;","vendor":"VMware, Inc.","version":"OpenGL ES 3.1 Mesa 25.0.7-2+deb13u1","kind":"VIRTUAL GPU (HOST)","error":"","drawMs":0.764,"frames":1392,"presented":1390,"zeroCopy":0},"checks":[{"id":"wl_shm formats","state":"pass","detail":"2 FORMATS, ARGB8888 YES, XRGB8888 YES"},{"id":"wl_output modes","state":"pass","detail":"1 OUTPUT: Virtual-1 1280X800 @ 60.00 HZ, SCALE 1"},{"id":"zxdg_output layout","state":"pass","detail":"LOGICAL 1280X800 AT 0,0"},{"id":"fractional scale","state":"pass","detail":"PREFERRED 1.000"},{"id":"subsurface + viewport","state":"pass","detail":"SHOWN (FRAME CALLBACK), VIEWPORT 48 -> 96"},{"id":"xdg popup","state":"pass","detail":"CONFIGURED 200X100, MAPPED"},{"id":"maximize","state":"pass","detail":"STATE SET (1175X729) AND CLEARED"},{"id":"fullscreen","state":"pass","detail":"STATE SET (1280X800) AND CLEARED"},{"id":"linux-dmabuf","state":"pass","detail":"V4: DEVICE renderD128, 4 FORMAT ENTRIES, 1 TRANCHE"},{"id":"clipboard round trip","state":"pass","detail":"TEXT CAME BACK INTACT"},{"id":"primary selection","state":"pass","detail":"TEXT CAME BACK INTACT"},{"id":"cursor shape","state":"untested","detail":"NEEDS THE POINTER OVER THE WINDOW"},{"id":"relative pointer","state":"pass","detail":"8 RELATIVE MOTION EVENTS"},{"id":"pointer constraints","state":"info","detail":"BOUND (LOCK AND CONFINE: NOT TRIED YET)"},{"id":"pointer gestures","state":"untested","detail":"BOUND V3: SWIPE OR PINCH ON A TOUCHPAD"},{"id":"idle inhibit","state":"pass","detail":"INHIBITOR CREATED AND RELEASED"},{"id":"seat","state":"pass","detail":"wl_seat V9 OFFERED"},{"id":"xdg-shell","state":"pass","detail":"xdg_wm_base V6 OFFERED"},{"id":"server decorations","state":"pass","detail":"zxdg_decoration_manager_v1 V1 OFFERED"},{"id":"presentation time","state":"pass","detail":"wp_presentation V1 OFFERED"},{"id":"input methods (text-input v3)","state":"info","detail":"zwp_text_input_manager_v3 NOT OFFERED"},{"id":"xdg-activation","state":"info","detail":"xdg_activation_v1 NOT OFFERED"},{"id":"single-pixel buffers","state":"info","detail":"wp_single_pixel_buffer_manager_v1 NOT OFFERED"},{"id":"tearing control (games)","state":"info","detail":"wp_tearing_control_manager_v1 NOT OFFERED"},{"id":"content type","state":"info","detail":"wp_content_type_manager_v1 NOT OFFERED"},{"id":"drawing tablets","state":"info","detail":"zwp_tablet_manager_v2 NOT OFFERED"},{"id":"idle notify","state":"info","detail":"ext_idle_notifier_v1 NOT OFFERED"},{"id":"VR headsets (drm-lease)","state":"info","detail":"wp_drm_lease_device_v1 NOT OFFERED"}]}
diff --git a/server/src/kms.c b/server/src/kms.c
index 221eecf..5f0894a 100644
--- a/server/src/kms.c
+++ b/server/src/kms.c
@@ -12,6 +12,8 @@
#include <time.h>
#include <unistd.h>
+static uint64_t kms_now_ns(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return (uint64_t)t.tv_sec * 1000000000ull + (uint64_t)t.tv_nsec; }
+
static int xioctl(int fd, unsigned long req, void *arg) {
int r;
do r = ioctl(fd, req, arg);
@@ -416,6 +418,7 @@ int kms_flip(Kms *k) {
};
if (xioctl(k->fd, DRM_IOCTL_MODE_PAGE_FLIP, &pf) == 0) {
k->flip_pending = 1;
+ k->flip_submit_ns = kms_now_ns();
return 0;
}
/* Synchronous fallback if the driver does not support page flip. */
@@ -513,7 +516,7 @@ int kms_flip_fb(Kms *k, uint32_t fb, void *data) {
.crtc_id = k->crtc_id, .fb_id = fb, .flags = DRM_MODE_PAGE_FLIP_EVENT, .user_data = (uintptr_t)data,
};
k->custom = 1;
- if (!k->modeset_pending && xioctl(k->fd, DRM_IOCTL_MODE_PAGE_FLIP, &pf) == 0) { k->flip_pending = 1; return 0; }
+ if (!k->modeset_pending && xioctl(k->fd, DRM_IOCTL_MODE_PAGE_FLIP, &pf) == 0) { k->flip_pending = 1; k->flip_submit_ns = kms_now_ns(); return 0; }
/* no page flip: synchronous modeset and notify right away */
if (kms_set_fb(k, fb)) return -1;
struct timespec t;
diff --git a/server/src/kms.h b/server/src/kms.h
index 46d44f5..9ab041a 100644
--- a/server/src/kms.h
+++ b/server/src/kms.h
@@ -28,6 +28,7 @@ typedef struct {
int custom;
/* last flip: time (CLOCK_MONOTONIC, ns) and vblank number (wp_presentation) */
uint64_t flip_ns;
+ uint64_t flip_submit_ns; /* when that flip was queued (CLOCK_MONOTONIC, ns) */
unsigned flip_seq;
/* hardware cursor (cursor plane, legacy ioctl) */
uint32_t cursor_handle, cursor_w, cursor_h;
diff --git a/server/src/main.c b/server/src/main.c
index 17d1d89..2e062f6 100644
--- a/server/src/main.c
+++ b/server/src/main.c
@@ -176,6 +176,10 @@ static int out_count(const Server *s) {
return n;
}
static Out *main_out(Server *s) { return &s->out[s->out[s->main_out].on ? s->main_out : 0]; }
+/* page flips that complete before vblank (see the main loop): consecutive early flips seen, 0..8 */
+static int flip_instant, flip_told;
+static double pace_next; /* the next frame's slot when frames are paced in software, ms */
+
static int any_flip_pending(const Server *s) {
for (int i = 0; i < OUT_MAX; i++) if (s->out[i].on && s->out[i].kms.flip_pending) return 1;
return 0;
@@ -1815,8 +1819,22 @@ int main(int argc, char **argv) {
/* no monitor, no vblank: 60 frames a second, or as fast as the fastest remote viewer's screen
* (120, 144 Hz…) */
int hz = mirror_fps() > 60 ? mirror_fps() : 60;
- double pace = s.headless ? s.last_render + 1000.0 / hz - 0.4 - now_ms() : 0;
- if (wants && !all_busy(&s) && pace <= 0) { render(&s); wants = 0; }
+ /* a driver that completes page flips at once instead of on vblank (vmwgfx, some virtual cards)
+ * is paced to the mode's refresh, or the compositor and every app draw hundreds of frames a second */
+ int soft = !s.headless && flip_instant >= 3;
+ if (soft) hz = main_out(&s)->kms.mode.vrefresh > 0 ? main_out(&s)->kms.mode.vrefresh : 60;
+ /* frames start on a fixed grid of 1000/hz ms (a software vblank): waiting in whole milliseconds
+ * then never adds up, so 60 Hz stays 60 frames a second, not 57 */
+ double pace = 0, period = 1000.0 / hz, tnow = now_ms();
+ if (s.headless || soft) {
+ if (!pace_next || tnow - pace_next > period) pace_next = tnow; /* idle, or fell behind */
+ pace = pace_next - tnow;
+ }
+ if (wants && !all_busy(&s) && pace <= 0) {
+ render(&s);
+ wants = 0;
+ if (s.headless || soft) pace_next += period;
+ }
if (wants && pace > 0 && (delay < 0 || pace < delay)) delay = pace;
int wait = delay < 0 ? -1 : (int)ceil(delay);
@@ -1871,6 +1889,14 @@ int main(int argc, char **argv) {
if (nh) kms_dispatch_heads(heads, nh);
/* wp_presentation follows the main display's vblank */
if (was && !mk->flip_pending) {
+ /* a flip waits for vblank, half a period on average; one that completes within an eighth
+ * of it, again and again, comes from a driver that doesn't wait (a virtual card) */
+ uint64_t period = mk->mode.vrefresh ? 1000000000ull / mk->mode.vrefresh : 16666667ull;
+ if (mk->flip_submit_ns && mk->flip_ns >= mk->flip_submit_ns) {
+ if (mk->flip_ns - mk->flip_submit_ns < period / 8) { if (flip_instant < 8) flip_instant++; }
+ else if (flip_instant > 0) flip_instant--;
+ if (flip_instant == 3 && !flip_told++) fprintf(stderr, "kms: page flips complete before vblank: pacing to %d Hz\n", mk->mode.vrefresh ? mk->mode.vrefresh : 60);
+ }
wl_presented(mk->flip_ns, mk->flip_seq, mk->mode.vrefresh ? 1000000000u / mk->mode.vrefresh : 16666667u);
if (keylag_enabled) keylag_presented(mk->flip_ns);
}
diff --git a/web/content/paper/paper.en.md b/web/content/paper/paper.en.md
index 51087ad..4e72e14 100644
--- a/web/content/paper/paper.en.md
+++ b/web/content/paper/paper.en.md
@@ -431,9 +431,11 @@ All figures below were measured by the project and are documented in the files c
| `lord-server` without a 3D card (Mesa not loaded) | about 32 MB RSS | `docs/GPU.md` |
| A user session (`lord-server`), remote desktop tests | about 50 MB; login screen 41 MB | VM 118, `docs/REMOTE.md` |
| One isolated `.lpk` app | 13.7 MB RSS | VM 122, `docs/PRIVACY.md` |
+| Whole system, 0.8.5~rc1 updated from 0.8.4.1, a minute after sign-in (VMware VM, 4.7 GB, virtual GPU) | 606–622 MB used; PSS of all processes 316 MB, of which the session's `lord-server` 110 MB and the login screen's 78 MB (it stays for switching users and locking) | `results/0.8.5~rc1-beta/vmware-fusion` |
### 7.2 Drawing
+- **Software vblank (0.8.5).** A virtual card that completes page flips at once (VMware's `vmwgfx`) made the compositor and its apps draw 500–580 frames a second on a 60 Hz display; LordOS now detects it and paces frames to the refresh on a fixed grid: 59.8 frames a second, p99 18.4 ms, no frame over budget (`results/0.8.5~rc1-beta/vmware-fusion`).
- Dragging a window on one 1280×800 display on the CPU path: about 6.7–6.9 ms of work per frame, around 120 frames per second (VM 118, `docs/DISPLAYS.md`).
- The same window on a 2560×1600 display at 150 %: about 5.1 ms per frame.
- Video: painting straight from the decoded frame when only an opaque video changed brought `lord-server` from 42 % to 13 % of a core for a windowed 1080p video, and from 92 % to 15 % fullscreen (`docs/ROADMAP.md`, media).
diff --git a/web/content/paper/paper.es.md b/web/content/paper/paper.es.md
index 7ef5050..56f85a4 100644
--- a/web/content/paper/paper.es.md
+++ b/web/content/paper/paper.es.md
@@ -431,9 +431,11 @@ Todas las cifras de abajo las midió el proyecto y están documentadas en los ar
| `lord-server` sin placa 3D (Mesa sin cargar) | unos 32 MB de RSS | `docs/GPU.md` |
| Una sesión de usuario (`lord-server`), pruebas de escritorio remoto | unos 50 MB; pantalla de inicio 41 MB | VM 118, `docs/REMOTE.md` |
| Una app `.lpk` aislada | 13,7 MB de RSS | VM 122, `docs/PRIVACY.md` |
+| Sistema completo, 0.8.5~rc1 actualizado desde 0.8.4.1, un minuto después de iniciar sesión (VM de VMware, 4,7 GB, GPU virtual) | 606–622 MB usados; el PSS de todos los procesos suma 316 MB, de los que 110 MB son el `lord-server` de la sesión y 78 MB el de la pantalla de inicio (queda para cambiar de usuario y bloquear) | `results/0.8.5~rc1-beta/vmware-fusion` |
### 7.2 Dibujo
+- **Vblank por software (0.8.5).** Una placa virtual que completa los cambios de imagen al instante (`vmwgfx` de VMware) hacía que el compositor y sus apps dibujaran 500–580 cuadros por segundo en una pantalla de 60 Hz; LordOS ahora lo detecta y marca el ritmo del refresco con una grilla fija: 59,8 cuadros por segundo, p99 de 18,4 ms, ningún cuadro fuera de tiempo (`results/0.8.5~rc1-beta/vmware-fusion`).
- Arrastrar una ventana en una pantalla de 1280×800 por el camino de CPU: unos 6,7–6,9 ms de trabajo por cuadro, alrededor de 120 cuadros por segundo (VM 118, `docs/DISPLAYS.md`).
- La misma ventana en una pantalla de 2560×1600 al 150 %: unos 5,1 ms por cuadro.
- Video: pintar directamente desde el cuadro decodificado cuando solo cambió un video opaco bajó `lord-server` del 42 % al 13 % de un núcleo para un video 1080p en ventana, y del 92 % al 15 % a pantalla completa (`docs/ROADMAP.md`, multimedia).
diff --git a/web/content/paper/paper.pt.md b/web/content/paper/paper.pt.md
index 7191ce3..21fbd57 100644
--- a/web/content/paper/paper.pt.md
+++ b/web/content/paper/paper.pt.md
@@ -431,9 +431,11 @@ Todos os números abaixo foram medidos pelo projeto e estão documentados nos ar
| `lord-server` sem placa com 3D (Mesa não carregado) | cerca de 32 MB de RSS | `docs/GPU.md` |
| Uma sessão de usuário (`lord-server`), testes de área de trabalho remota | cerca de 50 MB; tela de login 41 MB | VM 118, `docs/REMOTE.md` |
| Um app `.lpk` isolado | 13,7 MB de RSS | VM 122, `docs/PRIVACY.md` |
+| Sistema inteiro, 0.8.5~rc1 atualizado a partir da 0.8.4.1, um minuto depois do login (VM do VMware, 4,7 GB, GPU virtual) | 606–622 MB em uso; o PSS de todos os processos soma 316 MB, dos quais 110 MB são o `lord-server` da sessão e 78 MB o da tela de login (fica para trocar de usuário e bloquear) | `results/0.8.5~rc1-beta/vmware-fusion` |
### 7.2 Desenho
+- **Vblank por software (0.8.5).** Uma placa virtual que completa as trocas de imagem na hora (`vmwgfx` do VMware) fazia o compositor e seus apps desenharem 500–580 quadros por segundo numa tela de 60 Hz; o LordOS agora detecta isso e marca o ritmo da atualização com uma grade fixa: 59,8 quadros por segundo, p99 de 18,4 ms, nenhum quadro fora do tempo (`results/0.8.5~rc1-beta/vmware-fusion`).
- Arrastar uma janela numa tela de 1280×800 pelo caminho da CPU: cerca de 6,7–6,9 ms de trabalho por quadro, por volta de 120 quadros por segundo (VM 118, `docs/DISPLAYS.md`).
- A mesma janela numa tela de 2560×1600 a 150 %: cerca de 5,1 ms por quadro.
- Vídeo: pintar direto do quadro decodificado quando só um vídeo opaco mudou levou o `lord-server` de 42 % para 13 % de um núcleo com um vídeo 1080p em janela, e de 92 % para 15 % em tela cheia (`docs/ROADMAP.md`, mídia).