Introduction to performance optimization tools in Cocos Development using Windows Task Manager

Source: Internet
Author: User

When it comes to the Windows platform, we quickly think of Visual Studio 2012, but Visual Studio 2012 doesn't have a good tool for that. We can use the Windows Task manager if we just want to know that in general memory, CPU, etc. change before and after an event.
Windows Task Manager is no stranger to many users, and since the Windows operating system, this tool accompanied with Windows. There are also many ways to open the Task Manager method, which can be recalled using the CTRL+SHIFT+ESC key combination in the Windows7 and WINDOWS8 platforms, or through the Ctrl+alt+delete key combination to enter the lock interface and then select the manager in the lock screen. In addition, we can also access through the menu. Open the Task Manager dialog box.

Task Manager Dialog box

We can find the game now launched from the list of apps in Task Manager. In general, we can be identified by the icon, the Testcpp is our launch of the Cocosd-x Game Simulator window program name, from which we can see the CPU, memory and other indicators. We can also click on the Performance tab to open the Performance window of Task Manager, where there is a graph table of indicator changes such as CPU and memory.

Performance dialog box for Task Manager

If you think the chart is still not detailed enough, you can open the following "Open Resource Monitor" button, after opening it as shown in the interface.

Resource Monitor dialog box

We can tick the relevant Win32 game execution program (for example: HelloWorld.exe), then more convenient to view the performance indicators, the right is the chart of the indicator changes.
It is important to note that using Windows Task Manager does not accurately tell us which objects consume memory and which threads are time consuming. Using it can help us evaluate the changes of these metrics before and after an operation or event processing to facilitate analysis and decision making. For example, we can use it to see the memory and CPU usage of two scenarios before and after the transition, to help us determine if the cache was cleared before the scene exited. Again, in the process of XML and JSON data decoding, it is also possible to see the memory and CPU change curves in the process to understand the execution efficiency.

Also, the Windows Task Manager cannot detect memory leaks, and we need to use other tools.

For more information, please pay attention to the first Cocos2d-x 3.2 Edition book "Cocos2d-x: C + + volume" book Exchange Discussion website: http://www.cocoagame.net
For more exciting video courses, please follow the Cocos class: Http://v.51work6.com Welcome to join the COCOS2D-X Technical Discussion group: 257760386 Welcome to the Luxgen iOS classroom public Platform

Introduction to performance optimization tools in Cocos Development using Windows Task Manager

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.