Open hgroschaus opened 1 year ago
OS | OS version | Langage |
---|---|---|
IOS | - | Swift |
ID | Title | Category | Sub-category |
---|---|---|---|
- | Use one constant for all your view elements frame rates | - | - |
Severity | Remediation Cost |
---|---|
Minor | Minor |
Avoid using multiple frame rates at once on screen.
For example, don’t have a character in your game moving at 60 frames per second, while the clouds in the sky are moving at 30 frames per second. Use the same frame rate for both, even if it means raising one of the frame rates.
for instance SpriteKit API using preferredFramesPerSecond:
var preferredFramesPerSecond: Int { get set }
Avoid using multiple frame rates at once on screen. For example, don’t have a character in your game moving at 60 frames per second, while the clouds in the sky are moving at 30 frames per second. Use the same frame rate for both, even if it means raising one of the frame rates.
for instance SpriteKit API using
preferredFramesPerSecond
: