Code Monkey home page Code Monkey logo

godot-overscan-demo's Introduction

Godot overscan demo

This demonstrates how viewport overscan can be used to improve screen-space effect consistency at a GPU performance cost. This affects any screen-space effect, but the ones where the difference is most notable is SSAO, SSIL and SSR.

Overscan values that provide the best performance/quality ratio are between 1.04 and 1.08 depending on the scene and effect intensity.

Note that this project does not support viewport resizing yet; it will always remain at its default resolution of 1280×720. Due to sub-pixel precision errors, the image may also appear to be slightly less sharp when overscanned (a more polished implementation could likely avoid this).

In general, overscan is quite expensive, especially at higher resolutions. Therefore, it is only recommended on high-end dedicated GPUs or for offline rendering.

Comparison

SSAO only

Before (0% overscan) After (8% overscan per side)
ssao_only_100 ssao_only_108

SSAO and SSIL

Before (0% overscan) After (8% overscan per side)
ssao_and_ssil_100 ssao_and_ssil_108

SSAO and SSIL (2)

Before (0% overscan) After (5% overscan per side) After (8% overscan per side)
ssao_and_ssil_2_100 ssao_and_ssil_2_105 ssao_and_ssil_2_108

Controls

  • Space: Play/pause camera animation

License

Copyright © 2022 Hugo Locurcio and contributors

Unless otherwise specified, files in this repository are licensed under the MIT license. See LICENSE.md for more information.

godot-overscan-demo's People

Contributors

calinou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

boyquotes

godot-overscan-demo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.