Optimized Cushions

Optimizing cushions on client and server

Optimized Cushions

Vanilla 26.3 added cushions as entities. A cushion never moves, but it still costs the same as any other entity on both client and server.

This mod treats a cushion as what it is: a static thing. The client bakes them into the terrain so they render like blocks; the server drops the per-tick tracking and ticking overhead. Gameplay is unchanged: sitting, breaking, picking, sounds, particles, drops and saves all stay vanilla.

Cushions from Cushion-Backport and Vanilla Backport also supported. The optimizations are the same as on the main version.

To be honest: cushions are already a very light entity, especially server-side, so you’ll only notice a difference if you have a LOT of them.

How it works

A cushion renders like any other block: baked straight into the chunk mesh, and terrain is much cheaper to draw than entities.

On the server, cushions with nobody sitting on them skip the entity tracker and tick-list and run through one lightweight loop instead. As soon as someone sits down (or you /ride one), that cushion snaps back to the full vanilla path, so behavior stays exact.

Features

  • More FPS — cushions are free to render once baked; the boost scales with how many are on screen.
  • Less memory pressure — especially on the client.
  • See them further — baked cushions are visible to full render distance, just like blocks, instead of the shorter vanilla entity range.
  • Lighter servers — big tick-time savings on cushion-heavy worlds (tracker, movement re-checks, and ticking all trimmed).
  • Nothing lost — every cushion interaction works exactly as in vanilla.
  • Resource packs — cushion textures from your resource pack are picked up automatically.

image

Compatibility

If you encounter any incompatibility, please create an issue or send me a message on the Discord server. Thanks!

  • Vanilla-safe — no protocol or save changes. The client half works on vanilla servers, and the server half serves vanilla clients.
  • Sodium — supported: cushions are baked into Sodium chunk meshes just like on vanilla. The server optimizations work with or without it.
  • Optimised Block Entities — client side is automatically disabled when OBE is installed. The server optimizations still work.
  • Cushions fall back to the vanilla renderer while glowing, on fire, or invisible, and name tags / F3+B hitboxes always render the vanilla way.

Trade-offs

A few small, deliberate differences from vanilla — none affect gameplay (drops, riding, sounds, damage and saves are identical):

  • Client — because cushions are baked into terrain, a change (place, break, teleport, dye) shows up on the next section rebuild rather than instantly. Textures now mipmap at distance like blocks.
  • Server — spawn/despawn for a moving player is checked on a ~1-block / 1-second grid instead of every packet, so a cushion at the far tracking edge can appear up to one block of walking later than vanilla. Support/fluid checks in unloaded-but-not-ticking chunks are deferred rather than frozen.

Links

Optimized Cushions Team

profile avatar
  • 7
    Followers
  • 11
    Projects
  • 611.2K
    Downloads
Donate

More from NikitaCartes2View all