question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Support for dynamically scalable effect resolution

See original GitHub issue

Hello! Great work on the effects.

It would be great to support dynamically scalable effect resolution for some of the more intensive effects or at least a fixed effect scale on instantiation. SSAO, for example, can be a bit expensive depending on how many samples you want to use but this can be improved by rendering it at half or quarter resolution. A depth / normal aware upscale might be needed afterward to remove some artifacts depending on the effect.

To explain a bit more in my application I iteratively increase / decrease the resolution of or enable / disable the effects based on the measured framerate of the web app. So if the application is running slowly we might lower the resolution scale of the SSAO or boom effects or even disable them until the framerate reaches an acceptable threshold. And inversely if we have some extra frame time we’ll enable or improve effect quality until we see frame dips.

Here’s something like I’m imagining:

bloomEffect = new BloomEffect();
composer.addPass(new RenderPass(scene, camera));
composer.addPass(new EffectPass(camera, bloomEffect));

// ...

bloomEffect.resolutionScale = 0.5;

Thanks again for the awesome work!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
vanruesccommented, Jun 9, 2020

Added a resolution setting to SSAOEffect in postprocessing@6.14.0.

1reaction
vanruesccommented, Jun 1, 2020

Cool stuff, thanks for sharing! Haven’t heard of GTAO before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic resolution - Unity - Manual
Dynamic resolution is a CameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to...
Read more >
Dynamic scaling for Amazon EC2 Auto Scaling
Dynamic scaling scales the capacity of your Auto Scaling group as traffic changes occur. Amazon EC2 Auto Scaling supports the following types of...
Read more >
Unity-Technologies/DynamicResolutionSample - GitHub
A simple, game usable script to drive Unity's dynamic resolution implementation. What Is This? Dynamic resolution is a technique for scaling render targets...
Read more >
Sponsored Feature: Dynamic Resolution Rendering
In this Intel-sponsored Gamasutra feature, Doug Binks presents an demonstration and explanation of dynamic resolution rendering for games, a process that ...
Read more >
Autoscaling guidance - Best practices for cloud applications
Review autoscaling guidance. Autoscaling is the process of dynamically allocating resources to match performance requirements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found