-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fit resolutions to less than 2k x 2k #1065
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
You may have to do more here than just limit the res. I suspect aspect ratios will come into play and also accounting for this weird additional scaling factor in the web -> engine 2D space conversions |
Yeah, we definitely will, I tried it out and mouse events definitely get offset. I'll have to think more about how to refactor this first. |
There's a chance that this will work without having to worry about mouse coords, assuming the correct stream width and height are fed into |
Oh nice, thanks for the tip, I'll give it a shot. |
Ok, that worked for scaling the input, now I just want to remove some of the duplication here. I'm wondering instead if we should do this scaling when we |
That sounds like a good bet to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very elegant change in the end 🏆
I put in limits on the API side to prevent huge resolutions. But, we still have a few cases where modeling app will request a bigger resolution, like full screen on my biggest monitor.
An unfortunate side-effect of this is that we'll also need to scale the resolution of all mouse events, but I'll do some testing to be sure.