PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.34k stars 2.2k forks source link

Optimise custom map rendering #11000

Open barnabwhy opened 2 days ago

barnabwhy commented 2 days ago

Saw a ~30% performance improvement in obc.map.CraftMapView.render()

Tested with a world containing many custom maps created using the ImageOnMap plugin, modified to remove this optimisation so that it renders every tick. Before: https://spark.lucko.me/NVdWKmSlFr After: https://spark.lucko.me/j6AJiFG9pD