# Decreased quality when coding outside the Processing IDE

**URL:** <https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818>\
**Category:** Processing\
**Created:** [February 3, 2023, 3:10pm UTC](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818 "2023-02-03T15:10:05Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 6, 2023, 12:13pm UTC](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818/23 "2023-02-06T12:13:39Z")

</div>

Hello @Grusat,

I also got this working (x1 scaling) on my W10 PC by passing these to command line in IntelliJ:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/0/d0fe21ccfde78344d79ddcf4a9083a20b4b30194.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/5/1545f083ca774d3d0c2244d1e2854abd98660b5a.png)

This required the following:

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/c/bcff05ae513bc38449d936c0f140dae3141cdcbc.png)

There is a reference to this in the GitHub resources I shared but I had to do some work on how to inject these into IntelliJ settings to add to command line.

`:)`

---

<div class="post-metadata">

**Author:** ![Grusat](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@Grusat](https://discourse.processing.org/u/Grusat)\
**Post date:** [February 21, 2023, 10:47am UTC](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818/24 "2023-02-21T10:47:12Z")

</div>

I found the solution to my problem :  
Just add

`System.setProperty("sun.java2d.uiScale", "1");`  
before the `PApplet.runSketch()`

It desactivates the auto scaling with Windows parameters.

Thank you all for your help !

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 30, 2025, 6:27pm UTC](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818/25 "2025-06-30T18:27:50Z")

</div>

> [@Grusat](#):
>
> System.setProperty(“sun.java2d.uiScale”, “1”);

I was experimenting with JavaFX (FX2D Renderer) and had a similar issue.

This works for FX2D renderer:

> [@Windows UI scaling not respected](https://discourse.processing.org/t/windows-ui-scaling-not-respected/45905/5):
>
> Hello @esc746, I just had the same issue! How to disable scaling in JavaFX so it behaves like Processing: You can turn off automatic DPI scaling in JavaFX by setting a system property: System.setProperty("glass.win.uiScale", "1");slight_smile

`:)`

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 25, 2025, 8:56pm UTC](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818/26 "2025-10-25T20:56:59Z")

</div>

> [@Grusat](#):
>
> I found the solution to my problem :  
> Just add
> 
> `System.setProperty("sun.java2d.uiScale", "1");`  
> before the `PApplet.runSketch()`
> 
> It desactivates the auto scaling with Windows parameters.

Cool beans!

I was able to use this with sketches as well:

> [@DPI Renderer Scaling Override for JAVA2D](https://discourse.processing.org/t/dpi-renderer-scaling-override-for-java2d/47439):
>
> Hello folks! Forcing 1:1 Pixel Rendering for Different Renderers in Processing This sketch demonstrates how to force 1:1 pixel rendering by overriding DPI scaling for JAVA2D in Processing. The solution was a challenging process that required iterating through multiple approaches with both ChatGPT and Google Gemini to finally arrive at a working solution and comments. The key piece of the solution is this static block at the beginning of the sketch, which ensures that Java2D and FX2D renderers…

`:)`

[Previous page](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818.md?page=1)
