your current location:首页 > news>Bad Optimizations Minecraft

Bad Optimizations Minecraft

2024-12-15 01:36:29|Myriagame |source:minecraft skins

Badoptimizations

At present, most of the optimization modules focus on rendering performance and optimizing the original rendering engine, while this module optimizes other than this.

It is recommended to use this module with other optimized modules (such as sodium) at the same time.

Function

The current main function:

Avoid update of light maps.Update the texture of the light map may be the most consumed place in the client.Each time, the client performs vector operations to calculate the light texture of the block and the sky, and then upload the new texture to the server.But when there is no change in brightness in the game, this calculation will still be carried out, which will affect performance.This module will cancel the update of the light illumination sticker when there is no thing that affects the brightness.

Avoid the color of clouds and sky.Each tick in the game calculates the color of clouds and sky, which is obviously unnecessary. This module will be calculated when the color of the cloud and the sky is affected.

F3 calculations are not performed when F3 is not opened.The calculation of F3 is very improving the performance. When the player does not open the F3, this calculation is still ongoing, and the use of the FPS string is a very slow function call.This module makes this function call only when the player opens F3, but it does not affect any module displaying FPS.

Calculation of unnecessary viewing angle.In the case of players' bow and illness, the angle of the field will change, but when the ratio of the angle of the field of view is zero, the game will still be calculated unnecessary.The stretching ratio of this module will cancel the calculation of the viewing angle when zero is zero.

Replace the Removeif call in ToastManager.In the original version, the game will call the Predicate twice, which will cause each message box twice.This module is replaced by calling once, which can improve performance regardless of whether there is a prompt box at present.


The author tests the game of RTX 3060, Intel i7 12700 and 4GB of memory:

When there is no message box, it is optimized from 1926 ~ 1955 FPS to 2008 ~ 2023 FPS;

When the message box pops up, it is optimized from 1351 ~ 1384 FPS to 1414 ~ 1458 FPS.

Minecraft images

Minecraft images

Minecraft images