mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 12:16:39 +00: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:
@@ -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