Profile PictureOwenTheProgrammer
CAD$1.35+

VRChat Frame Clearer

1 rating
Add to cart

VRChat Frame Clearer

CAD$1.35+
1 rating

The problem:


VRChat has always had a rough time with sorting and or blending see-through objects, which is more complex to calculate for compared to any solid geometry. This isn't helped by the fact that the textures holding your screen aren't cleared at the end of each frame. Usually this is not a problem because the skybox is rendered before anything else, but leaving transparent stuff on the screen as the next frame renders makes double the work for really no reason at all.

The solution:


I've found that (surprisingly) making a quad that renders black to the screen before anything else in your scene improves performance in many of my scenes with wildly varying amounts of performance boosts.
Clearing the screen before the frame begins prevents transparency and overdraw problems that come along with it, and this unity package does exactly that.

The Content:


Included in this unitypackage are a couple things:

  • The shader that clears your screen (OwenTheProgrammer/Utils/FrameClear)
  • A Udon script that only enables the frame clearer when you build your VRChat world (RuntimeWatchdog)
  • A prefab that makes this all a drag-and-drop functionality.


Disclaimer:

Although I put a fair amount of trust in what I build, If this miraculously breaks or doesn't work, come yell at me in my project discord

CAD$
Add to cart

You get FrameClear.unitypackage containing all that is needed to clear your vrchat projects' screen.

Size
8.15 KB
Copy product URL

Ratings

5
(1 rating)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%