diff --git a/entrypoint/src/main.rs b/entrypoint/src/main.rs index 56bc64df5..94cc1787e 100644 --- a/entrypoint/src/main.rs +++ b/entrypoint/src/main.rs @@ -80,14 +80,6 @@ fn main() -> Result<()> { std::env::set_var("PYTHONHOME", pythonhome_dir()?); std::env::set_var("PYTHONDONTWRITEBYTECODE", "1"); - // This enables the Qt Rendering Hardware Interface (RHI), to reduce observed render - // glitching on Windows. You can disable this feature by setting QSG_RHI=0 in your - // environment variables. - #[cfg(target_os = "windows")] - if std::env::var("QSG_RHI").is_err() { - std::env::set_var("QSG_RHI", "1"); - } - handle_splash(); let exit_code = Python::with_gil(|py| { let args = PyTuple::new(py, args); diff --git a/swiftnav_console/main.py b/swiftnav_console/main.py index 2aaa54dd6..7ce9722e1 100644 --- a/swiftnav_console/main.py +++ b/swiftnav_console/main.py @@ -586,6 +586,7 @@ def handle_cli_arguments(args: argparse.Namespace, globals_: QObject): if args.show_fileio: globals_.setProperty("showFileio", True) # type: ignore if args.use_opengl: + os.environ["QSG_RHI"] = "1" os.environ["QSG_RHI_BACKEND"] = "opengl" globals_.setProperty("useOpenGL", True) # type: ignore if args.no_antialiasing: