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.

Multiple visual regressions after enabling buffered container framebuffer clipping by default

See original GitHub issue

Opening as issue as I’m unsure on how to proceed.

Found at least three:

multiplayer lounge now playing overlay mania default skin (doesn’t look too broken, but is too flat)
osu_2021-11-04_20-22-57 osu_2021-11-04_20-23-05 osu_2021-11-04_20-23-34

Root case in all three usages is the same: it is combining the clipping option with CacheDrawnFrameBuffer. Using both in conjunction makes it so that the framebuffer is only ever clipped once, so if i.e. the buffered container is only partially visible when entering the screen, the cached framebuffer will have that initial too-small clipped size forevermore. In all above usages the buffered container sweeps/moves into the screen bounds and the framebuffer is clipped and cached too early.

Two fixes seem obvious - either reverting the clipping on-by-default and then adding clipping back to slider paths to fix the aspire breakage, or applying game-local clipToRootNode: false specs to all places that specify CacheDrawnFrameBuffer and look broken.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
peppycommented, Nov 5, 2021

Starting to think the setting should not be exposed, but hard-coupled with CacheDrawnFrameBuffer instead. I can’t immediately think of a case where clipping when not caching would be visible in any way, and the chance of someone using caching but also wanting to clip to the screen bounds seems quite low (@smoogipoo brought up mania, but i don’t see how clipping is what we want for the case of mania as they are caching currently, which would cause the notes to be cut off in weird ways if enabled).

Will wait for further opinions on the matter.

0reactions
smoogipoocommented, Nov 5, 2021

Depends on how bad the performance is. As you’ve mentioned, it’s two nested buffered containers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

opengl - Merging two separate framebuffers onto default ...
I want this behaviour to work when using multiple framebuffers! How do I merge two framebuffers and render the winning fragments on top...
Read more >
NVIDIA Linux Driver (For Linux) - Lenovo Support AI
G-SYNC is enabled by default when using G-SYNC-ready monitors. ... to crashes when OpenGL programs manipulated vertex buffer objects from multiple threads ...
Read more >
Multiple Render Targets and Framebuffer Refactor // Game ...
Currently watching c++ series, hyped to get up to this series :D. 29:02. Go to channel · Preparing Framebuffers for Mouse Picking //...
Read more >
Changelog | Universal RP | 16.0.3
Fixed an issue causing materials using Shader Graphs with material override to disappear when using the Deferred rendering path if alpha clipping is...
Read more >
Keyboard Control
Screenshots of the currently played file can be taken using the 'screenshot' input mode command, which is by default bound to the s...
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