r245 question
#1
In revision 245 the log message states:
Quote:Author: madmaxoft: MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)

This sounds like a massive improvement but is it? How should I interpret the message above?
Reply
Thanks given by:
#2
I'ts not really massive, but still is quite a lot Smile

On my QuadCore, the tick thread was hogging one core all the time (-> 25 % total CPU) before the change. After the change, the thread is using only about 5 % of the total CPU. Both values were measured with 1 player on the server, 17 chunks viewdistance.

This means that it now runs at least 5 times faster, maybe even more, because a thread can't run faster than one-core-at-a-time.

Note, however, that this was a debug build. In a release build this needn't be so noticable.
Reply
Thanks given by:
#3
It was even worse on Linux before, because the Linux version of MTRand reads a file each time it's createdTongue
Reply
Thanks given by:
#4
That _does_ sound massiveBig Grin
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)