mojira.dev
MC-262641

Chorus flower models are incredibly unoptimized and cause serious rendering lag

The bug

The chorus flower is perhaps one of the most unaccountably unoptimized models in the game: the shape of the block is specified via 31 texture planes, when a visually identical result can be achieved using just 18. The effects of this can be felt very, very easily.

How to reproduce

A resource pack is attached to this ticket containing an optimized version of the chorus flower model.

  1. Download this resource pack

  2. Create a new superflat world with randomTickSpeed set to 0 in the game rules menu using this preset:

    minecraft:end_stone,minecraft:chorus_flower,minecraft:end_stone,minecraft:chorus_flower,minecraft:end_stone,minecraft:chorus_flower,minecraft:end_stone,minecraft:chorus_flower;minecraft:the_void
  3. Start flying in Creative mode or by switching to Spectator

  4. Execute this command:

    /tp @s 0 -30 0 0 90
  5. Open the FPS bars by pressing F3 and Alt simultneously

  6. Compare the frame rates displayed on the bar when using the vanilla resources and when using this resource pack with the optimized model

Expected results

Good framerates in vanilla.

Actual results

Nope.

How to fix

This fix is very, very easy - just replace the vanilla "template_chorus_flower.json" model file with the one attached to this ticket. Mojang has my full permission, and strong encouragement, to use this model to improve the gameplay experiences of all other players.

Related issues

Attachments

Comments

migrated
[media][media][media][media]
[Mod]Les3awe

I can confirm that the following is my computer configuration:
OS: Windows 11 Pro 64-bit version 22H2 build 22621.1702
Java Version: 18.0.2 64-Bit
RAM: 128GB
CPU: Intel® Core™ i9-9900K
GPU: NVIDIA GeForce RTX 3080
GL version: 3.2.0 NVIDIA 531.79
GeForce Experience version: 3.27.0.112

Vanilla resources: 256 fps GPU: 52%~100%
Resource pack with the optimized model: 651 fps GPU: 51%~78%

muzikbike

(Unassigned)

Confirmed

Gameplay

Normal

Performance, Textures and models

model-optimization

1.19.4, 1.20 Pre-release 1, 1.20.2

Retrieved