Hard Light Productions Forums

Off-Topic Discussion => Programming => Topic started by: sigtau on April 20, 2013, 02:35:09 am

Title: Texture VRAM Usage Calculator
Post by: sigtau on April 20, 2013, 02:35:09 am
Shameless link to the post on my dev blog (http://sigmatauproductions.com/new-tool-available-texture-vram-usage-calculator/), for those interested.

I've been doing a fair bit of optimization on the art end of things on one of my latest projects, and this has resulted in learning more about compression algorithms.  I was scouring the Unity wiki and found a handy chart (http://wiki.unity3d.com/index.php/VRAM_tips) containing the bytes-per-pixel ratio of each compression algorithm used in the Unity engine, along with instructions on how to calculate VRAM usage of a texture based on this BPP ratio.

Because I'm a lazy little ****, I threw together a nice GUI-based program that allows you to calculate the VRAM usage of these textures on the fly.

Screen 1 (http://sigmatauproductions.com/wp-content/uploads/2013/04/VRAM-Usage-Calculator.png) | Screen 2 (http://sigmatauproductions.com/wp-content/uploads/2013/04/VRAM-Usage-Calculator-1.png)

Here's the download (http://sigmatauproductions.com/wp-content/uploads/2013/04/VRAMUsageCalculator.zip), it's an executable JAR (because **** Java applets and their security problems that keep making the front page of Slashdot).  If you're interested, here's the public domain source code (http://sigmatauproductions.com/wp-content/uploads/2013/04/VRAMCalculatorSource.zip) as well.