The test shows the same scene using regular Sprite
objects with blending, or with MeshSprite
objects composed of an inner opaque part and a transparent border.
Controls
- Pressing
B
on the keyboard orA
on the gamepad will toggle batching - Pressing
C
on the keyboard orB
on the gamepad will toggle culling - Pressing
T
on the keyboard orX
on the gamepad will toggle between individual textures and a texture atlas (more chances for batching) - Pressing
V
on the keyboard or the right bumper on the gamepad will toggle between simulating a camera by moving sprites in the opposite direction or using aViewport
and aCamera
objects - Pressing
M
on the keyboard or the left bumper on the gamepad will toggle between usingSprite
orMeshSprite
objects - Pressing
P
on the keyboard orStart
on the gamepad will pause the application - Pressing
1
,2
,3
,4
, or8
will progressively animate fewer sprites - Pressing
R
on the keyboard orY
on the gamepad, or double-clicking or double-tapping will reset the camera zoom - Pressing
F
on the keyboard will toggle full screen - Pressing
Escape
on the keyboard orGuide
on the gamepad will quit the application