-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
DisplayMode.FitScreen is just … weird #2076
Comments
@0xEAB Thanks for the issue, we'll get on the docs with some images/examples...that definitely needs improvement. FitScreen is intended to fit the game to the available screen real estate while preserving the defined pixel resolution (aspect ratio), it will change the viewport dynamically to make that happen. Based on the screen shots you've provided I'm guessing the white box is not where you expect it to be on screen. Correct me if I'm wrong. Running this locally it appears to be a bug (maybe 2) in excalibur:
|
…ated TODO: * [ ] WebGL will silently fail at high resolutions which is easy to get to with hidpi scaling * [ ] Warn when l.drawingBufferHeight/l.drawingBufferWidth don't match height/width * [ ] Fix tests
@0xEAB We've updated the screen & viewport docs let me know if you have any additional feedback! |
…ated (#2093) ===:clipboard: PR Checklist :clipboard:=== - [x] :pushpin: issue exists in github for these changes - [x] :microscope: existing tests still pass - [x] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/main/STYLEGUIDE.md) - [x] 📐 new tests written and passing / old tests updated with new scenario(s) - [x] 📄 changelog entry added (or not needed) ================== TODO: * [x] WebGL will silently fail at high resolutions which is easy to get to with hidpi scaling * [x] Warn when l.drawingBufferHeight/l.drawingBufferWidth don't match height/width * [x] Documentation improvement for original issue for different displaymodes * [x] Fix tests Closes #2076 ## Changes: - Deferred initialization of scene/camera until final resolution is calculated
Thank you for your explanations :) |
Steps to Reproduce
Been experimenting with your hello world thingy…
Wouldn’t see the paddle, other weird things going on.
Well, after getting more and more confused, I realized it’s just DisplayMode being horribly broken.
Expected Result
displayMode: DisplayMode.Fixed
Actual Result
Fullscreen window (F11)
Non fullscreen
Non fullscreen with console open
Variation I
Variation II
displayMode: DisplayMode.Fixed
– as expected :)Environment
Maybe I got wrong, what
DisplayMode.FitScreen
is supposed to do. But its docs are rather cryptic (without any images!) and in my experiment it was just incomprehensible and weird.Current Workaround
displayMode: DisplayMode.Fixed
The text was updated successfully, but these errors were encountered: