Intel Developer Blog: Tricks to make your code run faster

5 ways to optimise your code for Android

When people play mobile games they expect a great experience, even if they’re using a relatively low powered device. There are a number of improvements in the latest Android runtime, but there are some coding tricks you can use to make your code run even faster on Android 5.0 Lollipop.

You might have heard some reports based on an early release of ART, claiming that Art isn’t as powerful as Dalvik. Now, it’s possible to get some real data for a fair comparison. The tips article includes some benchmark data that shows how ART outperforms Dalvik, sometimes significantly.

As well as the natural performance uplift you’d expect from the new runtime, there are a few things you can do to help the compiler optimise your code. For example, you can use local variables instead of public class fields, and use the ‘final’ keyword to hint that a value is a constant. Check out the article for all five Android optimisation examples, together with example code. They might just provide an easy way to supercharge your game!

How can you test the end result? One way is to use some of the testing services that can check how well your app performs on Intel processor-based Android devices. They enable you to test your software for free, without needing to clutter up your desk with multiple devices.

The optimisation article and the testing tools are both from the Intel Developer Zone, a website that helps developers to create great software for Android, Windows and other platforms.

  • This blog post is written by Softtalkblog, and is sponsored by the Intel Developer Zone, which helps you to develop, market and sell software and apps for prominent platforms and emerging technologies powered by Intel Architecture.

For the latest Intel Developer Blogs, click here.

About MCV Staff

Check Also

470 Pacific [Industry news] Pacific Standard Creative Launches as New Division of Pacific Standard Sound, Merging World-Class Film, Television, and Video Game Capabilities

[Industry news] Pacific Standard Creative Launches as New Division of Pacific Standard Sound, Merging World-Class Film, Television, and Video Game Capabilities

Pacific Standard Sound (PSS), the award-winning sound design and full service post production and sound company whose work spans some of entertainment's most iconic properties, today announced the launch of Pacific Standard Creative (PSC), a new division purpose-built to serve the evolving storytelling and production needs of video game development studios, advertising agencies, trailer houses, and independent productions who demand world-class sound without compromise. Pacific Standard Creative will be helmed by industry veteran Eric Marks, who brings more than a decade of audio and engineering leadership, as well as two years as the Vice President of the Motion Picture Sound Editors (MPSE).