Why doesn't cTracer use Chunks?
#2
The cTracer class had been written before the chunks were made available. It is a somewhat legacy API; if you can change its usage to cLineBlockTracer instead, that would be great.

The performance hasn't been measured, but is assumed to be better with the direct chunk approach. Getting a single block from cWorld requires the underlying cChunkMap to lock a mutex, find the chunk to which the block belongs (a linear list search of the cChunkLayer objects), then query the chunk in the same way as the direct approach does.
Reply
Thanks given by:


Messages In This Thread
Why doesn't cTracer use Chunks? - by LogicParrot - 05-22-2015, 01:59 AM
RE: Why doesn't cTracer use Chunks? - by xoft - 05-22-2015, 02:03 AM



Users browsing this thread: 1 Guest(s)