mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 01:10:54 +01:00
Preferences: the Performance hover test covers Low-Latency Drawing
On the desktop, the test now also hovers the Low-Latency Drawing row and checks that it shows its own sentence and no other row's.
This commit is contained in:
1 parent
b6926e9a31
commit
6f3f373cd5
1 file changed
+6
-5
@@ -2433,14 +2433,15 @@ fn hovering_a_performance_row_shows_its_description() {
|
||||
let row = |texts: &[(String, egui::Rect)], label: &str| {
|
||||
texts.iter().rev().find(|(t, _)| t == label).map(|(_, r)| r.center()).unwrap_or_else(|| panic!("no `{label}` in {texts:?}"))
|
||||
};
|
||||
let mut rows = vec![
|
||||
("GPU Performance", "gpuPerformance"),
|
||||
("Animated Zoom", "animatedZoom"),
|
||||
("Graphics Processor:", "gpuPreference"),
|
||||
let mut rows = vec![("GPU Performance", "gpuPerformance"), ("Animated Zoom", "animatedZoom"), ("Graphics Processor:", "gpuPreference")];
|
||||
if !cfg!(target_arch = "wasm32") {
|
||||
rows.push(("Low-Latency Drawing", "lowLatencyDrawing"));
|
||||
}
|
||||
rows.extend([
|
||||
("History States:", "historyStates"),
|
||||
("Real-time Drawing and Editing", "realTimeDrawing"),
|
||||
("Render Threads (-1 = Automatic):", "renderThreads"),
|
||||
];
|
||||
]);
|
||||
if cfg!(target_os = "linux") {
|
||||
rows.push(("Linux Display Server:", "linuxDisplayServer"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user