-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
GFX: configurable x264 parameters #3214
Conversation
Is there scope for fps to match the client, without needing to be hardcoded?
We see the artificial capping of refresh rate to <= 30fps to be one of the significant causes of user-perceived latency. |
These macros are not for hardcoding the fps value, actually, the last resort value if fps values are not found anywhere in the config file. Multiple factors affect the whole refresh rate. There is also a cap on the capture rate on xorgxrdp side. The Network latency is also a big factor in user-perceiving latency. Total latency matters but network latency is not easily controllable. So it makes sense that fps is the only factor we can control. If network latency is 40ms, the total latency will be 80ms (25fps == 40ms/frame). That's huge! I also would like to tackle the latency issue but not in the scope of this PR right now. |
Just about to start a review. One think I must say up front is I'm not keen on the 'newconfig' name. Time has a habit of passing more quickly that any of us like, and all of a sudden, that 'new' can seem quite 'old'. Just up the road from where we live, there's a national park called the New Forest. I guess it was new in 1086, but here we are over 1000 years later and no-one's quite got round to renaming it yet! |
I recalled New York about that. New York is quite younger than New Forest though. About the "newconfig" name, I don't think it is a good name either and want to change it. Whatever is fine if it recalls TOML or a new config system and doesn't conflict with other names. I have some candidates:
I like tomling. It's a cute name. |
I'm happy with tomling myself, but I'd also be happy with sticking with 'config' if we can make it work with existing files. Naming things is one of the hardest problems in computing I think! |
I also thought about 'config' but there is already I've been thinking about the naming, I think simply |
Force-pushed. Commits will be squashed into several commits before merging. |
tconfig looks fine to me! |
@matt335672 Anything else? |
Not from me - LGTM. |
This PR makes x264 parameters such as bitrate configurable.
Design is not very sophisticated, comments are welcomed.
TODO: