-
Smart Vignette
Super cool dynamic vignette I cooked up. It takes one hundred samples of the brightness of various places on your screen (number is editable from the script) and takes an average brightness, then moves the vignette to take up less or more space.
The reason this doesn't cause an insane amount of lag is because I partition the sampling based on framerate. If your framerate becomes slower than 0.5 frames per second, it begins to spread the sampling out between multiple frames. This results in high-quality samples at a relatively fast speed. Before partitioning, I could only run 2x2 samples and even that would cause me to slow down. This place runs 20x5 samples and you shouldn't see any frame drops.
The reason I'm running more x samples than y samples is because I do partition checks when the X samples run, but not when the Y samples run. This allows me to partition the partition checks so they don't defeat their own purpose by making the game slower.
Slizerd has no creations.