Windows 11 pixelated code evaluation

Hello, this isn’t a major concern but one that I have tried to solve so thought that I would just post what I found.

When evaluating code using SCIDE I find that the evaluation highlighting renders text blurry, it is not permanent just while highlighted. I’m using Windows 11, SuperCollider 3.14.1 and display scaling is at 200%

  • Setting windows scaling to 100% solves the issue, albeit with unusably small text
  • Making the “Evaluated code” colours transparent doesn’t change the problem.
  • Setting QT_ENABLE_HIGHDPI_SCALING=0 also removes it, but makes GUI objects render at roughly half size
  • QT_QPA_PLATFORM=windows:fontengine=freetype and fontengine=gdi made no difference

I hope this is in some way helpful!

Yeah… display scaling can be a funky thing. I’m not on Windows, but I’ve had to do some amusing contortions to get it to work transparently.

This should probably be logged as a bug at https://github.com/supercollider/supercollider/issues – after that there are a couple of possibilities for how it might go. One way is that there might be some Qt object properties that we could set to get it to render correctly at a higher pixel scale. Another is that it might just be a Qt bug in Windows.

As a workaround, Edit > Preferences > Editor > Behavior > Blink duration lets you configure how long the code is highlighted when evaluating it. For my taste, our default is a bit on the long side (but then again, I’m also the type who goes into Max preferences and disables the patch cord wiggle-on-connect UI distraction). You can’t completely disable the flash, but you can make it so short that the pixelation won’t register on your eyes.

hjh

Thank you @jamshark70. I’ve set QT_ENABLE_HIGHDPI_SCALING to 0, which creates small GUI objects but leaves the IDE intact and doesn’t render pixelated evaluation flashes. I’ve opened a bug report as you said!

Hello, I wanted to make you aware that a fix for this bug has been created here ide: use hidpi pixmap for code highlighting by dyfer · Pull Request #7785 · supercollider/supercollider · GitHub thank you for the help!