You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The resolution goes from 1366x768 to 1360x768 #4949
The screen resolution is 1366x768, but the texture resolution is set to 1360x768? This makes the screen look really blurry with no way to fix it.
The screen is a virtual screen created from an option called 'Simulate secondary displays' in 'Developer options` with 1080p resolution. Then the resolution is changed through an app called 'SecondScreen' from the play store(I could give more info on the app if needed).
I looked through other people's logs and they also seem to be doing the same thing (only on this resolution).
Is there a way to set it to the correct resolution?
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) R5CWC05MXTX device SM_S918B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 7.4 MB/s (69007 bytes in 0.009s)
[server] INFO: Device: [samsung] samsung SM-S918B (Android 14)
[server] WARN: Display doesn't have FLAG_SUPPORTS_PROTECTED_BUFFERS flag, mirroring can be restricted
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.3-1pop1~1711635559~22.04~7a9f319
INFO: Trilinear filtering enabled
INFO: Texture: 1360x768
[server] WARN: Could not get initial audio timestamp
Im not sure if it is visible from the screenshot :P But you can tell that it is not the right resolution from the tiny 6 pixels worth of black bars around the screenshot.
But then I would still not be able to go into fullscreen since the my display's resolution is 1366x768 and it looks really bad with any other resolution. If I change the encoder would that fix it?
Activity
rom1v commentedon May 27, 2024
Use a resolution multiple of 8. It always rounds down to a multiple of 8 because it is a requirement of many encoders.
niliota commentedon May 27, 2024
But then I would still not be able to go into fullscreen since the my display's resolution is 1366x768 and it looks really bad with any other resolution. If I change the encoder would that fix it?
Thank you a lot for replying so fast!
rom1v commentedon May 27, 2024
Try removing all roundings (
& ~7):scrcpy/server/src/main/java/com/genymobile/scrcpy/Options.java
Line 297 in 206809a
scrcpy/server/src/main/java/com/genymobile/scrcpy/ScreenInfo.java
Lines 116 to 128 in 206809a
niliota commentedon May 27, 2024
It did work! tysm!
Why not add the changes to main? Would be too dangerous? Or maybe an option to disable the rounding?
Anyway, thank you a lot.
rom1v commentedon May 27, 2024
I think that many encoders fail with non-multiples of 8 (at least that was the case a few years ago).
Yes, an option
--size-rounding=(or with a better name?) would be useful:--size-rounding=1Do you want to work on it?
niliota commentedon May 27, 2024
Sure, I will try.
You can mark this issue as closed if you want.
rom1v commentedon Mar 31, 2026
See #6746.
Use optimal size alignment