-
-
Notifications
You must be signed in to change notification settings - Fork 978
minor dynamic resolution changes #4672
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
minor dynamic resolution changes #4672
Conversation
|
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
|
I see no visual difference @10110111 please check this pull request |
|
What role does |
|
we leave
If the scene is rendered in real time and is practically static, Stellarium generates approximately 18 frames per second. We draw about one atmosphere per second at full resolution. For faster-moving scenes, Stellarium increases the frame rate to the maximum, perhaps 50 frames per second depending on the hardware's capabilities. We draw about 10 atmospheres per second in reduced resolution.
|
| // if there is a timeout, we draw with full resolution | ||
| // if the change is too large, we draw with reduced resolution | ||
| atmoRes=timeout?1:reducedResolution; | ||
| // if the change is too big, we draw with reduced resolution, otherwise with full resolution |
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.
Honestly, the previous comment was a bit more understandable. I think the following would be better:
If the change is too big, the scene is considered dynamic and needs a higher frame rate, so it's rendered in lower resolution. Otherwise there's been a timeout, so the scene is updated in full resolution.
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.
|
Aside from my comments on comments, this LGTM. |
|
I am completely flexible regarding the comments. This line deals exclusively with the resolution. This line deals exclusively with the frame rate. The interplay of both factors is illustrated here. |
|
Hello @uwes-ufo! Please check the fresh version (development snapshot) of Stellarium: |
|
Hello @uwes-ufo! Please check the latest stable version of Stellarium: |
Description
Fixes # (issue) avoid initial delay and improve the comprehensibility of the implementation
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: