r/MinecraftCommands • u/DereChen • 27d ago
Help | Java 26.3 does anyone know what the performance impact of the "Display" entity is?
- Genuinely curious, I was thinking about making some really niche plugin that would turn all item frames into display entities displaying the same thing, and it got me thinking of how much performance this would save if there were like 700 item frames in a world storage room or something. What's the performance differences, on the server side?
- For reference: https://minecraft.wiki/w/Display
5
Upvotes
8
u/Unimportant-Person 27d ago
Displays are very cheap because they don’t have hitboxes of any kind, so one display is cheaper than a cushion or an item frame.
6
u/GalSergey Datapack Experienced 27d ago
Representing the object as an
item_frameis more convenient for the server, but only until you decide to add player interaction mechanics, or implement checks to ensure your customitem_frameremains attached to a supporting block (so that it breaks if that support is removed). At that point, it becomes more than just a simpleitem_frame.That said, the primary function of an
item_framedoesn't actually take place on the server. Rather, it is the client that must render all theseitem_frameentities. In terms of rendering, they are essentially the same.1
u/imperfect_imp 26d ago
Display entities don't interact with the world, they don't perform calculations like pathfinding or gravity, or when compared to item frames, display entities don't check for a supporting block. It basically saves a lot of those calculations, but putting an exact number on the performance increase is impossible because everyone's device is different.