DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > iPhone 6S GPU Benchmarking

iPhone 6S GPU Benchmarking

The 6S runs a Metal particles app approximately 3x faster than the vanilla 6 and can render 8 million particles at 30 frames per second.

Simon Gladman user avatar by
Simon Gladman
·
Sep. 29, 15 · Mobile Zone · Tutorial
Like (7)
Save
Tweet
3.08K Views

Join the DZone community and get the full member experience.

Join For Free

My shiny new iPhone 6S has just arrived and, of course, the first thing I did was run up my Swift and Metal GPU particle system app, ParticleLab. The performance jump from my trusty old 6 is pretty impressive!

With 4,000,000 particles, the 6 runs at around 20 frames per second, while the 6S hovers at around 60 frames per second. With 8,000,000 particles, the 6 runs at an unusable 10 frames per second while the 6s manages a not-too-shabby 30 frames per second. 


Comparing the same application on my iPad Air 2 is a little unfair because the iPad has more pixels to handle, but the iPhone 6s runs the demos about 50% faster.

It took two minutes to update my multiple touch demo to support 3D Touch. UITouch objects now have a force and maximumPossibleForce properties. If your device doesn't support 3D Touch, the value both will be zero, so my code caters for both classes with a simple ternary to calculate a touchMultiplier constant:

 let currentTouchesArray = Array(currentTouches)

    for (i, currentTouch) in currentTouchesArray.enumerate() where i < 4
    {
        let touchMultiplier = currentTouch.force == 0 && currentTouch.maximumPossibleForce == 0
            ? 1
            : Float(currentTouch.force / currentTouch.maximumPossibleForce)

        particleLab.setGravityWellProperties(gravityWellIndex: i,
            normalisedPositionX: Float(currentTouch.locationInView(view).x / view.frame.width) ,
            normalisedPositionY: Float(currentTouch.locationInView(view).y / view.frame.height),
            mass: 40 * touchMultiplier,
            spin: 20 * touchMultiplier)
    }


You can try for yourself—the source code for ParticleLab is available in my GitHub repository.

IPhone 6S

Published at DZone with permission of Simon Gladman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Best Jira Add-ons for the Cloud
  • GraphQL in Enterprise: What It Takes to Build, Deploy, and Monitor a New Enterprise GraphQL Service
  • SRE: From Theory to Practice: What's Difficult About Incident Command?
  • Open API and Omnichannel with Apache Kafka in Healthcare

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo