Scaleform 4.0 and higher includes a multi-threaded renderer design that allows movie advance and rendering (display) logic to be executed simultaneously on different threads, improving overall performance and enabling efficient Scaleform SDK integration into multi-threaded applications and game engines. This document describes the structure of the new renderer design, outlines the API changes made in Scaleform 4.0 to accommodate multi-threaded rendering, and provides the sample code necessary to get Scaleform rendering safely across threads.
Furthermore, Scaleform introduces the ability to execute a large portion of render code on a thread other than the main rendering thread. The final rendering API commands are recorded and then subsequently executed on the main rendering thread with greater efficiency. This can enable greater parallelism by reducing the load on the main rendering thread, which is frequently a bottleneck in applications. Refer to Multicore Rendering in Multi-threaded Rendering Concepts for details.