Quantcast
Jump to content

Android Game Analysis with Arm Mobile Studio


STF News
 Share

Recommended Posts

2020-09-29-01-banner.jpg

Game performance can vary between different Android devices, because they use different chipsets, and GPUs based on different Mali architectures. Your game may render at 60fps on a Galaxy S20+, but how will it perform on the Galaxy A51 5G? The A51 5G has good specs, but you may want to consider runtime changes based on the underlying hardware if your game is pushing the limits on flagship hardware. Similarly, you may need to optimize your game to run at lower frame rates on the Galaxy J and Galaxy M models, which are often found in emerging markets.

Players quickly lose interest in a game if they experience drops in frame rate, or slow load times. They won’t play your game on long journeys if it drains battery or overheats the device. To reliably deploy a game globally, and ensure a great user experience, you need to performance test on a wide range of Android devices.

The Arm Mobile Studio family of performance analysis tools provide games studios with a comprehensive game analysis workflow for Android, giving information and advice at appropriate levels of detail, for technical artists, graphics developers, performance analysts and project leaders.

2020-09-29-01-01.jpg

 

Monitor CPU and GPU activity

Arm Streamline captures a comprehensive profile of your game running on an unrooted Android device, and visualizes the CPU and GPU performance counter activity as you run your test scenario. You can see exactly how the CPU and GPU workloads are handled by the device, which helps you locate problem areas that might explain frame rate drops or thermal problems.

2020-09-29-01-02.jpg

 

However, spotting performance issues using Streamline can be time-consuming, unless you know exactly what you’re looking for. Your team may have varying levels of experience or expertise, so interpreting this data can be difficult.

Introducing Performance Advisor

Arm Performance Advisor is a lightweight reporting tool that transforms a Streamline capture into a simple report that describes how your game performed on the device, and alerts you to problem areas that you should consider optimizing. It can be used by your whole team on a regular basis, to spot trends and diagnose problems early in the development cycle, when you’re best placed to do something about it.

 

Performance Advisor reports the application frame rate, CPU load and GPU load, as well as content metrics about the workload running on the Mali GPU. If it detects problematic areas, Performance Advisor tells you whether it’s the CPU or GPU that is struggling to process your application, and links to optimization advice to help you rectify it.

2020-09-29-01-03.jpg

 

A frame rate analysis chart shows how the application performed over time. The background color of the chart indicates how the game performed. When you’re hitting your target frame rate, the chart background is green. In this example, most of the chart is blue, telling us the GPU in the device is struggling to process fragment workloads.

2020-09-29-01-04.jpg

 

Performance Advisor can capture screenshots of your game, at the point that FPS drops below a given threshold. This helps you to identify which content might be causing the problem. This provides valuable context when debugging and can allow some common elements to be spotted if repeated slowdowns occur. You can then investigate these frames more closely with Graphics Analyzer, to see exactly which graphics API calls were executing at that point.

If you want to separately evaluate how different parts of the game performed, for example, loading screens, menu selection, and different levels or gameplay scenarios, you can annotate these regions in your game so that Performance Advisor can report data for them independently.

Performance budgeting

Because they have different performance expectations, it’s a good idea to set your own performance budgets for each device. For example, if you know the top frequency for the GPU in the device, and you have a target frame rate, you can calculate the absolute limit of GPU cost per frame.

GPU cost per frame = GPU top frequency / Target frame rate

When you generate a report with Performance Advisor, you can pass in your performance budgets, which are then shown in the charts, so you can easily see if you’ve broken one.

2020-09-29-01-05.jpg

 

In the example below, we can see correlation between high numbers of execution engine cycles and drops in FPS. Performance Advisor tells us that the GPU is busy with arithmetic operations, and that the shaders could be too complex. The report provides a link to an advice page on the Arm Developer website, that explains how to reduce arithmetic load in shaders.

2020-09-29-01-06.jpg

 

More charts include key performance metrics such as CPU cycles per frame and GPU bandwidth per frame, reported for read and write access. There are also charts showing the content workload , draw calls, primitives and pixels per frame, and the level of overdraw per pixel.

Download an example Performance Advisor report

Automated performance analysis

It’s far easier to fix problems as they arise than is it to patch problems later on. Performance Advisor’s key application performance metrics are useful to monitor over daily runs, to see how changes to your application affect performance during development.

2020-09-29-01-07.jpg

 

Arm Mobile Studio Professional includes headless CI support - so you can easily deploy large-scale automated performance testing across multiple devices. Using a device farm with a CI workflow, you can generate performance data and optimization advice automatically, every night, for several Android devices. As you check in code, you can easily monitor how your content performs against your performance budgets over time, and raise alerts when you start to approach or break those budgets.

The Professional Edition also enables you to build bespoke data dashboards from the data that been collected. Performance Advisor's machine-readable JSON reports can be imported into any JSON-compatible database and visualization platform, such as the ELK stack. Compare metrics between test runs to quickly determine which changes impacted performance, and which type of workload is the likely cause for a regression. Query the data and compare performance against specific targets to identify optimization next steps.

Read more about how to integrate Arm Mobile Studio into a CI workflow on the Arm Developer website.

Resources

Arm publishes various resources on their developer website, to help you optimize performance:

Get Arm Mobile Studio

Arm Mobile Studio is free to use for interactive performance analysis. To use it headlessly in your CI workflow, you need an Arm Mobile Studio Professional license.

Download Arm Mobile Studio

View the full blog at its source

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Similar Topics

    • By STF News
      View the full blog at its source
    • By STF News
      The quality of graphics and sound in games is improving all the time. Therefore, to ensure they can enjoy games to their fullest, gamers must ensure they are playing on high-specification equipment that is capable of delivering a premium gaming experience.
       
      Amid this climate, Samsung has launched its Odyssey Neo G9 gaming monitor, which is specifically designed for gamers who want to enjoy a high-resolution, smooth gaming experience devoid of delays. Launched in 2020, the Odyssey Neo G9’s predecessor the Odyssey G9 was the first-ever 1000R curvature gaming monitor and set a new standard with its outstanding, quantum-technology-enabled image quality.
       
      Samsung Newsroom unboxed and reviewed the Samsung Odyssey Neo G9 to get a better sense of how the monitor is enriching gaming experiences.
       
       
      Easy Installation With a Sturdy Stand and Expanded Connectivity

       

       
      After you open the package and remove each of the components, it becomes clear just how easy it is to install the Odyssey Neo G9. In addition to the 123.8cm-wide, 32:9 ultra-widescreen monitor with its circular core that glows during gameplay, the package contains a sturdy stand that provides a solid base and cables that facilitate easy connection to a variety of external devices.
       
      * When assembling the monitor, please refer to the user manual that comes with the product.
       
      For quick and simple installation, first screw the stand into the center back of the monitor while it is still in its packaging. Then, attach the core lighting component that is divided into two halves by joining them at the joint and twisting them in. The stand is easy to assemble and disassemble due to its cradle form, while the height, tilt and rotation of the monitor can be adjusted to ensure an optimal gameplay position.
       

       
      These days, users game on desktops, laptops, and consoles. To ensure that all these types of gamers are taken into consideration, the Odyssey Neo G9 features a range of different ports to facilitate connection to a host of devices. With two HDMI 2.1 ports, along with DisplayPort 1.4 and USB 3.0 ports on the back of the monitor, users can connect a range of different devices to their monitor and game on the big screen. Another strength of the Odyssey Neo G9 is its ‘Auto Source Switch+’ feature, which allows the monitor to switch input sources automatically when another device is connected.
       
       
      Quantum Matrix and Quantum HDR 2000: The Secrets to Detailed, Lifelike Resolution

       
      The 1000R curvature of the Odyssey Neo G9 is close to the visual field of humans, allowing the display to completely fill the user’s peripheral vision. What’s more, the monitor’s dual QHD display and 5,120×1,440 resolution enable detailed images to fill the user’s visual field, drawing them more deeply into the scenes being displayed.
       

       
      The secret to the Odyssey Neo G9’s outstanding resolution is Quantum Matrix technology. With the introduction of finer light sources, the number of local dimming zones in the screen has been increased to 2,048. What’s more, the monitor’s contrast can now be adjusted to a much finer degree, with 4,096 different contrast levels available to help bring out the unique characteristics of both bright and dark tones.
       

       
      HDR technology, which expands the brightest and darkest points of the brightness spectrum, has been recognized as the next-generation standard for displaying images. With its Quantum HDR 2000 technology, the Odyssey Neo G9 can vividly reproduce scenes with sharp differences in brightness, like those featuring explosions. This technology enables brightness of up to 2,000 nits, which is two times greater than that of existing monitors such as the previous Odyssey G9 model.
       

       
      The static contrast ratio of the Odyssey Neo G9 is 1,000,000:1, which means its high performance stands out even more when it displays images with sharp differences in brightness. By expressing dark colors more deeply and bright ones more brightly, the monitor is able to establish dimensional contrast.
       
       
      Taking Every Experience to New Heights of Immersion With Core Sync

       
      Another advantage of the Odyssey Neo G9 series is the way the monitor’s aesthetics allow users to create their own special gaming atmosphere. Just like the previous model, the Odyssey G9, the Odyssey Neo G9 comes with core lighting on the back of the monitor, which further establishes a captivating gaming environment.
       

       
      The monitor’s Infinity Lighting, which emits a blue light when the monitor is turned on, has evolved in the Odyssey Neo G9 thanks to the new ‘Core Sync’ feature. Core Sync automatically analyzes the color at the center of the screen and radiates lighting of the same color from the back of the screen. This feature can be turned on by navigating to the ‘Infinity Core Lighting’ menu in the monitor settings and enabling ‘Lighting’ and ‘Core Sync.’ Thus, whether the gamer is exploring deep waters or a dark forest, the Odyssey Neo G9 deepens their immersion by providing ambient light of a similar hue to blur the boundaries between the game and reality.
       
      The monitor’s Infinity Core Lighting includes a number of other dynamic features too. From ‘Lighting Effect’, which sets the lighting to a single color, to ‘Rainbow’, which makes the core switch colors at intervals, this feature allows gamers to enhance their experience however they see fit.
       

       
       
      High Refresh Rate for Smooth Gameplay and Minimal Input Lag
      While having fast reactions is crucially important while gaming, reacting quickly proves useless when the commands entered aren’t reflected instantaneously in the game. The Odyssey Neo G9 is equipped with a number of useful features to help ensure that the ability to react quickly will put users on the road to victory.
       

       
      The time it takes for a signal that is entered using a mouse or a keyboard to be reflected on the screen is called input lag. With its ‘Low Input Lag’ feature, the Odyssey Neo G9 shortens the time it takes for commands to be processed and delivers smooth gameplay. The addition of the ‘AMD FreeSync Premium Pro’ and ‘NVIDIA G-Sync Compatible’ features have also allowed the GPU and panel to be synced up in the Odyssey Neo G9. By minimizing interruptions and distortion, the monitor allows users to enjoy smooth visuals even when playing a game with swift camera movements.
       

       
      The display capabilities of the monitor are also important when it comes to enjoying a game with high-level graphics to its fullest. One of the main criteria for evaluating display capabilities is refresh rate, which represents the number of images being displayed per second. With a high refresh rate of 240Hz, the Odyssey Neo G9 is capable of seamlessly displaying even action-packed games with highly detailed graphics.
       
      The time it takes for a video signal sent from the graphics card to reach the display is called response time. The response time of the Odyssey Neo G9 is 1ms,1 which means it can display signals sent from the graphics card in just 0.001 seconds. This allows gamers to enjoy clear visuals free of stuttering and choppiness. The monitor’s 1ms response time comes in especially handy when playing FPS or racing games that require swift camera movements.
       

       
      A high performance and deeply immersive monitor, the Odyssey Neo G9 helps you transform your space into the ultimate gaming environment. For users striving to reach the very top of their respective gaming universes, this visually stunning gaming monitor is a must-have.
       
       
      * Some of images shown in this article are simulated.
       
      1 Based on Gray to Gray industry standard measurement.

      View the full article
    • By STF News
      Making your web app adaptive following responsive design techniques can improve your performance score, here is how.
      The benefits of applying responsive design include boosting your SEO, having a better user experience on different devices, and making your website more accessible, but did you know that making your web app adaptive to different viewports can also improve your web performance score? In previous articles, we explained the current status of responsive design including dark mode and responsive design for foldables, and we even share some insights about its future, now let’s deep dive into how web performance is related to an optimized look and feel.
      Web Performance Metrics
      The first step to improving something is to measure it! Being aware of what metrics that we should collect to later compare results that will show us which aspects of our web app needs more work. When it’s about web performance, we can use any of our favourite browser devtools, in this case, I will be using Lighthouse. There are many metrics to consider but when it’s about responsive design, Cumulative Layout Shift and CSS Optimization play an important role.
      Cumulative Layout Shift
      The first metric that we will use to achieve a responsive design is Cumulative Layout Shift, this is really important because is a user-centric metric and measures visual stability. How many times have you been on a website and suddenly you experience some changes in the layout? It's like the page moves by itself! This can lead to click on the wrong thing or lose your place whilst reading. Annoying right? We don’t want to offer that bad user experience! Let me show you an example and how we fixed it.
      Last year we build the first prototype of Samsung Global Goals PWA in collaboration with the United Nations, our mission was to bring the native app to other platforms because we believe in the power of the outreach of the World Wide Web. This web app basically loads dynamic content like cards with images and text. One of our main goals was to deliver a fast app even if the connection was not reliable, then we tested the web app using a low bandwidth connection to see how it goes. The results were not bad but as we had dynamic images loading, our cards changed the size while it completes the download of the resources. This looks really bad, therefore it deserves a fix (and an apology to the user).
      Cards while loading with a low connection.
      How do we fix this? It’s pretty simple, if you have the same problem using images, always set up height and width.
      Width and height attribute added to img element

      If you have dynamic content like us on your web app or let’s say that you will show ads later, make sure to use placeholders specifically for this content. This is what we did, we used a placeholder with a background colour that matches the card and image, so images will load and cards won't move at all. Websites should strive to have a CLS score of 0.1 or less, by doing this we went from 0.33 to 0! Besides that, remember if your image is in a container you can use CSS to adjust the image to it by using height: auto and width: 100%
      CSS Optimization
      We usually rely on external CSS libraries to achieve a responsive design, there are a few things that we have to keep in mind to don’t mess up our performance if we do this. The techniques related to CSS optimization include reducing render-blocking CSS, eliminating unused CSS rules, and minify CSS.
      I will focus on removing unused CSS since it’s one of the most common issues that we need to improve when using external resources. Actually, you can check if you have unused CSS on Lighthouse, for example, here is telling us that we are not using around 95% of our CSS, this is a lot!
      Unused CSS metric on lighthouse
      How to detect unused CSS and remove it
      If you are using an external library check if you have the option to export just the components that you will use instead. Another option is taking a look at how your web app is using the resources. You can try this on Chrome Dev tools, press CTRL + SHIFT +Pto open the command line, and type coverage. A new tab will appear where you will find how much percentage of your resources are being used. For example, the following CSS library has almost 40% of unused lines, same with other resources. If you click on a particular one you can even see which lines are used or unused indicated by different colors.

      There are several libraries that can detect unused CSS and reduced your CSS file size, like Purify CSS, which is a JS library that you can install with npm or directly use purify CSS online. It will not only show you the amount of unused code it will also create a new CSS file with just the code that you currently need.
      🚀Performance and Responsive Design are correlated
      Just in case that you were not clear about the multiple benefits of responsive design, now you can add one more to this list: making your web app faster and more performant. Which are your favorite performance tools?
      View the full blog at its source
    • By STF News
      Samsung Electronics announced that the 2021 Neo QLED became the first TV to receive certification for Gaming TV Performance from Verband Deutscher Elektrotechniker (VDE), a well-regarded electrical engineering certification institute in Germany.
       
      Four models from the 2021 Neo QLED lineup (QN900, QN800, QN90, QN85) received the certification, a distinction given for ‘Low Input Lag’ and ‘HDR with brightness of higher than 1,000 nits.’ Each of the TVs went through a rigorous testing process, ultimately earning the certification for less than 10ms of input lag during every scene of gameplay. Input lag refers to the period of time from when an electrical signal is sent from the game pad to when it is displayed on the screen. A TV with lower input lag will provide gamers with a more immersive gaming experience.
       
      In addition, Samsung’s Neo QLED also received the certification for HDR with brightness over 1,000 nits. FreeSync Premium Pro also adds to the HDR support, making bright scenes brighter and dark scenes darker to offer optimized contrast. HDR technology is often considered as one of the most important features among gamers.
       
      Apart from low input lag and HDR support with brightness of higher than 1,000 nits, Samsung’s Neo QLED TVs also reflect a number of new and exciting gaming features.
       
      Samsung’s Neo QLED TVs deliver more accurate details, deeper blacks and incredible color expression due to their 100% color volume and 12-bit backlight control. Wide Game View and Game Bar, both industry firsts, deliver a broader viewing experience with 21:9 and 32:9, and the ability to quickly check a variety of gaming information.
       
      In addition, Samsung’s Neo QLED TVs deliver fast game motion at 120Hz with Motion Xcelerator Turbo+, even during gameplay with fixed UI. Sound has also been enhanced through AI-based surround-sound and object tracking sound (OTS+), delivering the ultimate immersive gaming experience.
       
      Yonghoon Choi, Executive Vice President of the Visual Display Business at Samsung Electronics said, “An increasing number of gamers look for large screen displays with high-end picture quality when shopping for a TV, and Samsung continues to lead the TV-focused gaming experience.”
       
      For more information on Samsung’s 2021 Neo QLED TV, please visit www.samsung.com.
      View the full article
    • By STF News
      The 8K Association (8KA), the cross-industry group dedicated to promoting the growth of the 8K ecosystem, has published an updated performance specification for the 8K Association Certified mark program. TV shoppers looking for televisions which offer four times the resolution of 4K TVs and meet the high-performance standards of the 8K Association Certified program will benefit from the newly adopted broader performance requirements applied to 8K TVs launching in the market starting this year.
       
      In addition to the existing requirements for resolution, luminance, color and connectivity standards that ensure powerful big-screen performance, the 8K Association Certified logo program now recognizes a broader set of video decoding standards that will promote the wider availability of 8K streaming content. In addition, the updated requirements ensure that 8K TVs enable access to advanced multi-dimensional surround sound formats for a truly immersive home theater experience.
       
      “During this difficult time when a communal movie theater experience is not possible for many, the availability of big-screen TVs with super-sharp 8K resolution offers an alternative cinematic option at home,” said Dan Schinasi, Director of Product Planning at Samsung Electronics America. “With the 8K Association’s support in promoting standards that include audio-video performance and interface standards, we expect that more homes will choose 8K TVs and more 8K content will be soon available in those homes in the year ahead, offering an exceptional home theater experience.”
       
      In addition to the 8KA’s updated performance standard for TVs, the organization expects to promote the growth of the 8K ecosystem with a focus on educating video content creators on the benefits of capturing, producing and distributing video in 8K resolution.
       
      Established just two years ago, the 8KA has grown to encompass a broad membership of leading companies that represent all the different parts of the ecosystem. From 8K content creators and technology suppliers that enable 8K content creation to semiconductor producers, panel manufacturers and the world’s biggest TV brands – 8KA member companies are at the forefront of delivering the most impressive visual images from lens to the living room.
      View the full article

×
×
  • Create New...