-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitor scale problem. #4867
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Hi @EmmanuelPil, can you take some screenshots of the problem demonstrating expected and actual behaviour? It is a bit hard for me to diagnose what the problem is from just reading your description and looking at sketches without knowing what they should look like in the first place. Thanks! |
Thank you for looking into this. My windows scale (or sometimes called video) setting = 125 % on my 1920 * 1080 monitor, |
I don't have a Windows machine to test and also not too familiar with WebGL. I'll refer to @stalgiag to have a look at this. Would be helpful if you can create a bare minimum example then we can get testing the problem quickly. |
Of course. I should have done that in the beginning.
|
@EmmanuelPil thanks for the simple example. I tested extensively at zoom settings ranging from 30% to 300% and could not see any issues on my Mac with latest Chrome or Firefox. I will test again on Windows when I get a chance. |
Thanks. Just to clarify, It's not just the browser zoom. It only happens when using the windows scale setting above 100%. |
I can confirm problems with that. When using Windows Text and UI scale on 125% (those are 2 separate settings) my canvas is 2 times bigger and pixelDensity is 2. But why p5js bugs on this? |
Hi @EmmanuelPil I got a chance to look at this with Windows. I adjusted the windows scale setting and up and down. I didn't notice a change in the example code you posted. Perhaps it is subtle and I am missing it? Can you post a picture of what renders on your computer with that sketch when your scale is at 125%? Thanks! |
Thank you @EmmanuelPil ! This is really helpful. Sorry it took me so long to see. Sometimes the more obvious something is the harder it is to see. I looked into it and the reason this is happening is that the Anyways! This can be fixed by adjusting the value of This could be a good issue for someone interested in trying out WebGL contributions. |
Hi.
I'm using a Windows 7 Ultimate 64bit PC with the latest Chrome version.
It's quite common to use at least a 125 % 'scale' screen setting for medium to larger screen resolutions.
And they can be changed rapidly to test. But if you leave the normal 'browser' zoom at 100% the sketches are not playing properly.
For example in this sketch, the arrows points are not drawn when the browser zoom setting is not set to 80%. Only lines.
I have added a temporary workaround, asking once to adjust the zoom in an alert.
Another sketch also doesn't play or well when zoom isn't correct
The text was updated successfully, but these errors were encountered: