Commit 4bf0ac99 authored by Matthias Betz's avatar Matthias Betz
Browse files

Disable Prism dirty-region opt to fix stale controls near GL canvas



The embedded openglfx canvas breaks JavaFX partial-repaint tracking, leaving
sibling controls (the log panel) with a stale/cleared background while only
newly-invalidated content (log text) repaints. Setting prism.dirtyopts=false
before toolkit init forces a full scene repaint per pulse, fixing it.

Co-Authored-By: default avatarClaude Opus 4.8 <noreply@anthropic.com>
parent d0d05f47
......@@ -245,6 +245,11 @@ public class MainWindow extends Application {
private ChangeListener<Number> filterChangeListener;
public static void main(String[] args) {
// The embedded OpenGL canvas (openglfx) breaks JavaFX's partial-repaint accounting, leaving
// sibling controls (e.g. the log panel) with a stale background. Disabling Prism's dirty-region
// optimization forces a full scene repaint each pulse, which fixes the artifacts. Must be set
// before the JavaFX toolkit initializes.
System.setProperty("prism.dirtyopts", "false");
setLocaleFromSettings();
ArgumentParser argParser = new ArgumentParser(args);
inputFile = CityDoctorValidation.getInputFile(argParser, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment