Discussion incident removal blockpalettes
#3
Thanks for forum post!

xoft please add me back to the organisation.

About the change in question, replacing BLOCKTYPE (8 bits) and NIBBLETYPE (8 bits) with dynamic strings is detrimental to performance and heap allocations would have eaten our lunch. See for example the slowdown in vanilla 1.13+.

Vanilla blocks will be represented in the server as shorts (16 bits hopefully) and type-safe accessors generated by Lua script automatically from Vanilla registries. Protocol translation is a simple switch statement. Strings will only make an appearance in Anvil serialisation and deserialization.

Plugins will eventually be able to add blocks to a global mapping, presumably encoded in the BlockState class to store arbitrary stringly-typed data.
Reply
Thanks given by:


Messages In This Thread
RE: Discussion incident removal blockpalettes - by tigerw - 09-11-2020, 06:17 AM



Users browsing this thread: 1 Guest(s)