This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Stage3D, made by Adobe, is the hardware-acceleration engine used to speed up graphic effects (with the exception of the ghost and brightness effects).[1] Hardware-acceleration is the utilization of a computer's graphics processing unit (GPU) to handle visual-rendering and effects instead of placing it all on the computer's processor. Not all GPUs support Stage3D and therefore some older computers may not be able to run this acceleration.
Stage3D can be toggled by pressing Ctrl and M in the Scratch 2.0 online player/editor (⌘ Cmd, ⇧ Shift and M on Macs. This does not work on Microsoft Edge.
History
Scratch 2.0 has always used a part of Flash called Pixel Bender to accelerate graphic effects. Pixel Bender was Adobe's code executed in a GPU to accelerate the rendering of graphical processes in Flash. However, in early July 2013, Adobe removed Pixel Bender with the official release and update of version 11.8 of Flash. With hardware-acceleration broken in many Flash applications, the Scratch Player being one of them, Adobe received much criticism.[2]
Without Pixel Bender, Scratch required graphic effects to be rendered on the CPU instead of the GPU of computers. Therefore, for all effects except ghost and brightness effects, projects had serious lag. The Scratch Team decided to turn to another platform for hardware-acceleration, Stage3D.
Beta Player
The original, official name of the Stage3D project player was the Beta Player. It was released on October 17, 2013 to the public.[3] It existed as an individual web page in which one could paste the URL of a project and test it in the player. At first it was very buggy and the Scratch Team sought the community's help. The beta page had a Google form to fill out explaining if the project ran properly or not and why. The Scratch Team also allowed bug posts in a few topics on the Announcements forum.[4]
On January 7, 2014, an account settings option was created that allowed one to opt-in to the Beta Player for all projects viewed on the website.[5] Therefore, the web page for testing projects in the new player was taken down. The Beta Player, through the use of Stage3D, ran graphic effects smoothly as promised but still had other bugs. The player existed in this stage with frequent updates for a few months.
Solution
On March 12, 2014, Lightnin, a former Scratch Team member, posted an announcement in the Advanced Topics forum. [6] He stated that two players now co-exist in Scratch: The original player and the Stage3D player.
- If a project contains no graphic effect blocks (except ghost and/or brightness), the project will use the original player to run.
- If a project does contain graphic effects besides ghost and/or brightness, the project will automatically run in the Stage3D Player.
As soon as a graphic effect block is dragged into Scratch, besides ghost and brightness, Scratch detects it and will use the Stage3D player to run the project.
Pros and Cons of Stage3D
This article or section needs additional citations for verification. Its information may not be accurate. Editors can help by adding references. (July 2017) |
Pros:
- Faster graphic effect scripts
- Less stress on client's computer[citation needed]
Cons:
- Sometimes messes up scripts[citation needed]
- Effects can glitch[citation needed]
- Vector costumes are treated as bitmap images[citation needed]
See Also
- Beta Player
- Graphic Effects
- Hardware Acceleration on Wikipedia
References
This section has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites. |