# Why does size() create different window sizes depending on whether P3D is used?

**URL:** <https://discourse.processing.org/t/why-does-size-create-different-window-sizes-depending-on-whether-p3d-is-used/42537>\
**Category:** Processing\
**Created:** [August 2, 2023, 12:42am UTC](https://discourse.processing.org/t/why-does-size-create-different-window-sizes-depending-on-whether-p3d-is-used/42537 "2023-08-02T00:42:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [August 2, 2023, 10:57am UTC](https://discourse.processing.org/t/why-does-size-create-different-window-sizes-depending-on-whether-p3d-is-used/42537/3 "2023-08-02T10:57:26Z")

</div>

Hello @jtbr,

Which version of Processing?  
What operating system?

Related discussions:

> [@The render window is scaled improperly when Windows display scale is set to greater than 100%](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932):
>
> Hi. I have a QHD monitor (2560x1440), and I have my display scale set to 150% for readability. Unfortunately, in Python mode, the render window is also scaled up the same amount, making things very jagged. I didn’t realize the issue until comparing a test code in both Python and Java mode. When I switch it to 100% scale, they both render the same. Is this a bug? Is there code I can add to make it work properly? I’ve tested a lot and nothing seems to work. Thanks in advance.

> [@Decreased quality when coding outside the Processing IDE](https://discourse.processing.org/t/decreased-quality-when-coding-outside-the-processing-ide/40818):
>
> After many years with Processing IDE, I missed Intellij IDEA too much so I went back for it but Processing stays on wink However, the shapes drawn are way less sharp than in the real PDE, for example, a simple circle is rendered differently using both time the latest version of Processing available 4.1.2, the same PC and the same monitor : In PDE : public void setup() { size(500, 500); } public void draw() { background(40); noStroke(); fill(255); circle(width/2, height…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/why-does-size-create-different-window-sizes-depending-on-whether-p3d-is-used/42537)._
