Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does unity find the cause of performance problems

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Editor to share with you unity how to find the causes of performance problems, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

This time, let's talk about the performance problem finding method of mono memory.

Mono is mainly a code problem, and various solutions will be talked about elsewhere, starting with solving each peak, which can lead to problems such as gc,mono heap memory requests.

1. Use cube to test first.

Run a round on the mobile phone and check the data.

You can see that the memory is applied here, and you can see. At this time, first of all, there is a downward spike, and this is the execution of a gc. Then mono found that the memory requested in your code has exceeded the current heap memory, so you can only apply for one more piece.

So after this, we need to find out what we are doing at this moment.

two。 Use Profiler to measure

At this time, run the previous round on editor. Probably find the same location.

Corresponding to the diagram of cube above, you can find the corresponding location of profiler.

You can roughly find out where the memory is being applied for.

Or at this time, you can also use uwa tools to test.

Also run the game and upload data

Find the function corresponding to the consumption

The above is all the content of the article "how to find the cause of performance problems in unity". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report