Skip to content
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

Allow any floating-point value as a 3D rendering scale option #52215

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 29, 2021

Follow-up to #51870.

This allows for finer control over 3D rendering resolution. Supersampling can also be performed by setting a 3D rendering resolution above 1.0, which is useful for offline rendering or for very high-end GPUs.

With this change, it's possible to implement dynamic resolution scaling using a script. It's not ideal but seems to be usable enough, provided you disable temporal reprojection in volumetric fog (if you use volumetric fog). The sky will also flicker black when the render scale is changed for one frame, but we can figure that out in a later PR.

Testing project: test_render_scale.zip
Use ZQSD/Space/Shift to move, mouse wheel up/down or F2/F1 to change the rendering scale. Press X to toggle the experimental dynamic resolution scaling (it targets ~200 FPS with the frametime variables, modify Label.gd to change this).


I haven't submitted this in the PR, but it appears that anamorphic resolution scaling (different factors for width and height) works fine with the above testing project. If desired, I can amend this pull request or open a new one after this PR is merged.

@Calinou
Copy link
Member Author

Calinou commented Aug 29, 2021

Superseded by #52232. (Leaving this PR as reference if needed.)

@Calinou Calinou closed this Aug 29, 2021
@Calinou
Copy link
Member Author

Calinou commented Aug 30, 2021

Reopening per #52232 (comment).

@Calinou Calinou reopened this Aug 30, 2021
@Calinou Calinou removed the archived label Aug 30, 2021
This allows for finer control over 3D rendering resolution.
Supersampling can also be performed by setting a 3D rendering
resolution above 1.0, which is useful for offline rendering or
for very high-end GPUs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants