We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bc13d commit a8603c6Copy full SHA for a8603c6
entrypoint/src/main.rs
@@ -70,7 +70,15 @@ fn main() -> Result<()> {
70
std::env::set_var("SWIFTNAV_CONSOLE_FROZEN", app_dir()?);
71
std::env::set_var("PYTHONHOME", pythonhome_dir()?);
72
std::env::set_var("PYTHONDONTWRITEBYTECODE", "1");
73
- std::env::set_var("QSG_RHI", "1");
+
74
+ // This enables the Qt Rendering Hardware Interface (RHI), to reduce observed render
75
+ // glitching on Windows. You can disable this feature by setting QSG_RHI=0 in your
76
+ // environment variables.
77
+ #[cfg(target_os = "windows")]
78
+ if std::env::var("QSG_RHI").is_err() {
79
+ std::env::set_var("QSG_RHI", "1");
80
+ }
81
82
handle_splash();
83
let exit_code = Python::with_gil(|py| {
84
let args = PyTuple::new(py, args);
0 commit comments