use egui_virtual_list for rendering

absolutely insane performance increase

Fixes: https://github.com/damus-io/notedeck/issues/32
Suggested-by: @lucasmerlin
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-28 11:03:47 -07:00
parent d0cfeee79f
commit 26128c3456
6 changed files with 142 additions and 102 deletions

31
Cargo.lock generated
View File

@@ -1055,7 +1055,7 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"web-time",
"web-time 0.2.4",
"wgpu",
"winapi",
"winit",
@@ -1090,7 +1090,7 @@ dependencies = [
"puffin",
"thiserror",
"type-map",
"web-time",
"web-time 0.2.4",
"wgpu",
"winit",
]
@@ -1107,7 +1107,7 @@ dependencies = [
"puffin",
"raw-window-handle 0.6.0",
"smithay-clipboard",
"web-time",
"web-time 0.2.4",
"webbrowser",
"winit",
]
@@ -1145,6 +1145,16 @@ dependencies = [
"web-sys",
]
[[package]]
name = "egui_virtual_list"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "142d3a0ad2ae4743e323ad1cb384bffd45abc36dac6f9833f0980c2b4d76af1a"
dependencies = [
"egui",
"web-time 1.1.0",
]
[[package]]
name = "ehttp"
version = "0.2.0"
@@ -2580,6 +2590,7 @@ dependencies = [
"eframe",
"egui",
"egui_extras",
"egui_virtual_list",
"ehttp 0.2.0",
"enostr",
"env_logger 0.10.2",
@@ -3059,7 +3070,7 @@ dependencies = [
"puffin",
"time",
"vec1",
"web-time",
"web-time 0.2.4",
]
[[package]]
@@ -4679,6 +4690,16 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "web-time"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "webbrowser"
version = "0.8.12"
@@ -5156,7 +5177,7 @@ dependencies = [
"wayland-protocols",
"wayland-protocols-plasma",
"web-sys",
"web-time",
"web-time 0.2.4",
"windows-sys 0.48.0",
"x11-dl",
"x11rb 0.13.0",