The performance optimization of the project mainly focuses on three aspects: CPU, GPU, and memory. This article and everyone share memory optimization tips.
Whether it is a game or a VR application, memory management is a top priority in its R&D phase. However, in the large number of projects we have evaluated, more than 90% of projects have different levels of memory usage. With regard to mobile games and mobile VR games that are currently developed based on the Unity engine, the memory overhead is no more than the following three major factors:
Resource memory occupancy;
Engine module's own memory consumption;
Managed heap memory footprint.
If your project has a memory problem, you cannot escape the above three situations. Today, we explain each of these three situations one by one.
1, resource memory footprint
In a more complex large- and medium-sized project, the memory footprint of resources often occupies more than 70% of the total memory. Therefore, the appropriate use of resources directly determines the project's memory footprint. In general, the resources of a game project can be mainly divided into the following categories: Texture, Mesh, Animation Clip, Audio Clip, Material, Shader ), Fonts, Text Assets, etc. Among them, textures, grids, animation clips, and audio clips are the resources most likely to cause large memory overhead.
One, texture
Texture resources are arguably the most memory-intensive resource in almost any game project. A 60,000-piece scene, the largest grid resources only 10MB, but a 2048x2048 texture, may directly reach 16MB. Therefore, the proper use of texture resources in the project will greatly affect the project's memory footprint.
So, where should we pay attention to when using texture resources?
(1) Texture format
The texture format is the texture attribute that the R&D team needs to pay attention to most. Because it not only affects the memory usage of the texture, it also determines the loading efficiency of the texture. In general, we recommend that the development team choose the hardware-supported texture format according to the type of hardware, such as ETC on the Android platform, PVRTC on the iOS platform, DXT on the Windows PC, and so on. Therefore, in the UWA evaluation report, we will list the texture formats in detail so that the development team can quickly find and locate one step.
Reverse Conducting Thyristor(RCT)
Reverse Conducting Thyristor(RCT) is also called Reverse- appreciation Thyristor.The characteristic is that a diode is connected in reverse parallel between the anode and cathode of thyristor, so that the transmitting junction of anode and cathode is short-circuited.As a result of this special circuit structure, it has high voltage resistance, high temperature resistance, short turn-off time, low switching voltage and other good performance.For example, the turn-off time of the reverse thyristor is only a few microseconds, and the working frequency is dozens of KHZ, which is better than the fast thyristor (FSCR).This device is suitable for switching power supply and UPS uninterrupted power supply. One RCT can replace one thyristor and one continuous current diode respectively.
Reverse Conducting Thyristor,Original Reverse Conducting Thyristor,New Reverse Conducting Thyristor,Reverse-Conducting Thyristor 2200V
YANGZHOU POSITIONING TECH CO., LTD. , https://www.cnchipmicro.com