-
Notifications
You must be signed in to change notification settings - Fork 113
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
In rdpLRANDR.c why set refresh rate to 50Hz? #270
Comments
It is a pseudo refresh rate. I believe it doesn't affect actual behaviour. There's no answer why it is 50Hz but it can be set to whatever. |
The real answer: I was playing with the value to see if it would help performance, I don't think it changed anything, and because it didn't matter it likely got merged into a commit long ago without much thought. |
@metalefty Yes, I set it to 30Hz or 120Hz, nNo change at all. |
@Nexarian Do you have any good advice? I hope to use vsync to control the frame ratre in glxgears or other APP with swapinterval. |
What is your purpose? As I said, It can be set whatever but it doesn't affect actual behaviour. It is a PSEUDO value, just ignore it. |
See also: neutrinolabs/xrdp#2546 (comment) |
I hope to reduce GPU usage through control rdp0 (virtual monitor's name) refresh rate. In my test , I used windows mstsc to connect XRDP in ubuntu, and the glxgears or glmark2 run in high FPS, because the vsync/vblank seems to be invalid. I found something about refresh rate in libxrandr, and xrdp can change refresh rate in xrandr. But it seems to do nothing to help glx/egl to use glxswapintervalEXT function in MESA. |
In rdpLRANDR.c I found the refresh rate is 50Hz. And I can get 50Hz from xrandr command.
But when I test glxgears command with __GL_SYNC_TO_VBLANK=1 or vblank_mode=1. The frame rate is not 50Hz.
The text was updated successfully, but these errors were encountered: