ChunkCache question
#2
There is no explicit chunk cache in MCS, because the entire cWorld is in fact a chunk cache.

If I were to write a plugin like this, I'd go about it this way:
- Install a post-generator hook that saves the entire chunk somewhere, and then processes it so that all the invisible blocks are ores.
- Install a player-digging hook that checks if the visibility has changed, and if so, restores the needed blocks from the "backup".
- In order to speed things up, I'd keep backups of the four chunks closest to the player loaded, so that the restoration process takes as little time as possible.

This will not be perfect, however, because the obfuscation cannot really process blocks on the chunk's edge - there is no neighbor data while generating. This could be worked around, if needed.
Reply
Thanks given by:


Messages In This Thread
ChunkCache question - by sphinxc0re - 10-16-2014, 11:07 PM
RE: ChunkCache question - by xoft - 10-16-2014, 11:40 PM
RE: ChunkCache question - by sphinxc0re - 10-21-2014, 05:42 AM
RE: ChunkCache question - by sphinxc0re - 10-17-2014, 12:19 AM
RE: ChunkCache question - by xoft - 10-17-2014, 04:51 AM
RE: ChunkCache question - by sphinxc0re - 10-17-2014, 04:45 PM
RE: ChunkCache question - by xoft - 10-17-2014, 06:11 PM
RE: ChunkCache question - by sphinxc0re - 10-17-2014, 08:39 PM
RE: ChunkCache question - by xoft - 10-18-2014, 02:19 AM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 06:17 AM
RE: ChunkCache question - by xoft - 10-18-2014, 06:25 AM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 07:24 PM
RE: ChunkCache question - by NiLSPACE - 10-18-2014, 07:41 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 07:45 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 10:01 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 08:31 PM
RE: ChunkCache question - by ambushed01 - 10-18-2014, 08:38 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 08:40 PM
RE: ChunkCache question - by ambushed01 - 10-18-2014, 08:41 PM
RE: ChunkCache question - by xoft - 10-18-2014, 09:24 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 09:38 PM
RE: ChunkCache question - by NiLSPACE - 10-18-2014, 09:53 PM
RE: ChunkCache question - by NiLSPACE - 10-18-2014, 10:10 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 10:20 PM
RE: ChunkCache question - by NiLSPACE - 10-18-2014, 10:31 PM
RE: ChunkCache question - by xoft - 10-18-2014, 10:50 PM
RE: ChunkCache question - by sphinxc0re - 10-20-2014, 03:40 AM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 11:47 PM
RE: ChunkCache question - by NiLSPACE - 10-18-2014, 11:51 PM
RE: ChunkCache question - by sphinxc0re - 10-18-2014, 11:56 PM
RE: ChunkCache question - by xoft - 10-20-2014, 06:04 AM
RE: ChunkCache question - by sphinxc0re - 10-22-2014, 02:20 AM
RE: ChunkCache question - by xoft - 10-22-2014, 05:13 AM
RE: ChunkCache question - by sphinxc0re - 10-23-2014, 01:31 AM
RE: ChunkCache question - by xoft - 10-23-2014, 02:29 AM
RE: ChunkCache question - by sphinxc0re - 10-23-2014, 03:07 AM
RE: ChunkCache question - by xoft - 10-23-2014, 06:30 AM
RE: ChunkCache question - by sphinxc0re - 10-23-2014, 04:53 PM
RE: ChunkCache question - by sphinxc0re - 11-05-2014, 05:47 AM
RE: ChunkCache question - by sphinxc0re - 11-06-2014, 08:54 AM
RE: ChunkCache question - by sphinxc0re - 11-11-2014, 06:45 AM



Users browsing this thread: 7 Guest(s)