Scaleform Corporation is a leading provider of tools and middleware for the video game, embedded, mobile, and desktop markets. Scaleform licenses a suite of cross-platform, hardware-accelerated vector graphics engines and Flash UI toolkits, which allow users to design, develop, and deploy a variety of interactive entertainment content across a wide range of platforms and formats. Scaleform Corporation was acquired by Autodesk, for more information, please visit: www.autodesk.com.
This article describes how Incredibuild was used to accelerate the building and packaging phase of Scaleform’s distribution pipeline. Scaleform’s signature product, Scaleform GFx, is a lightweight, high-performance, rich media user interface and vector graphics engine. Using Scaleform GFx and Adobe Flash Studio, our customers have been able to change from a programmer-centric, static UI development environment to an artist-driven, dynamic Flash UI and animated texture production pipeline. Because we support all major gaming console systems as well as Windows, Mac OS, and Linux, Scaleform GFx is built across over 80 different configurations. Once built, the configurations must be compressed into zip files or installer executables.
Our distribution pipeline consists of four basic phases: Building, Packaging, Testing, and Posting. We build 86 different configurations consisting of our core GFx SDK, demos, and samples. These configurations are packaged into 10 different installers.
Running on a single 3.4 GHz machine, our Building process took approximately 2 hours and 40 minutes while the creation of the installers (Packaging phase) took just over 1 hour. The Testing phase can uncover problems or bugs that cause the Build and Packaging phases to be repeated before another round of testing. Without Incredibuild, this rebuild process would create nearly 4 hours of down time between each Test cycle. This lengthy delay proved to be a problem in delivering quality software to our customers in a timely manner.
The main alternative to solve our problem was upgrading to better hardware. However, this solution had diminishing returns, as even the latest multicore PCs did not offer the speed benefits gained by adding another node to the Incredibuild network. This is due to disk contention and other heavy system tasks that are not just processor dependent.
Through the use of Incredibuild, we were able to distribute our build across our network to many multi-core machines. Using Incredibuild also allowed linking on multiple cores on the host machine instead of just one for Visual Studio, which itself allowed us to build our SDK n times faster on a machine with n cores (e.g., two times faster on a two-core machine, four times faster on a four-core machine).
By using Incredibuild we were able to quickly and easily distribute the creation of GFx installation packages across multiple machines. Our largest installer takes only 8 minutes to create, but building all of them linearly on a single-CPU machine takes over an hour. When the installation packages are queued through Incredibuild, the entire packaging process is reduced to 8 minutes, or the time required to build the largest package.
Integrating Incredibuild to compile the GFx SDK was a simple task of having the Incredibuild Agents installed across the network, then adding one line to our build script for every solution we wanted to distribute. The script also returns the result of each compilation, allowing us to have better error checking throughout our builds.
The Scaleform GFx installers are built by dynamically inserting a command line into a batch file, which will then queue the commands with Incredibuild. The batch file is then passed to IncrediBuild’s command line (IBConsole.exe), which quickly and efficiently handles the copying of many gigs of data across our network and the compression of that data to an installer less than 50MB in size.
The two phases affected by Incredibuild were the Building and Packaging phases. Our typical time to compile the builds took 2 hours and 21 minutes; when using Incredibuild, the time dropped down to 40 minutes. This was a net savings of 1 hour and 41 minutes, or a 71% reduction in compile time.
Our time spent packaging without distributing the installer creation was 1 hour and 3 minutes. When using Incredibuild, the packaging time dropped down to 8 minutes, resulting in a net savings of 55 minutes, or an 88% reduction in packaging time.
This brought our total time down from 3 hours and 24 minutes to 48 minutes, reducing our building and packaging time by over 75%.
Incredibuild’s solutions have improved the speed of our distribution pipeline more than any other single solution. The 75% improvement resulted in quicker testing and ultimately faster distribution so that we can meet release dates without having to wait on a slow pipeline to complete. With Scaleform GFx becoming available on more platforms on a regular basis, as well as being integrated with an increasing number of major video game engines, it’s essential that our build process be streamlined and efficient. Incredibuild plays a significant role in making this goal possible.
- Total time of the Building and Packaging phases
- 3 hoursWithout Incredibuild
- 48 minsWith Incredibuild