Quote:
Originally Posted by lephino
so if I'm reading this right, it points to the byte offset from the base memory address. How were you able to determined that it recycled at 4096?
I keep seeing the address reset after 60 lines, while I can get the byte counter to point up passed 10,000 bytes.
intersting -10 from my offset gives the base address where the last byte array is stored, and -6 gives you the last location it wrote in that array. Very handy.
|
I have not seen the text buffer go 10k. You will need to take care as the offsets array moves in memory until it hits max size, although the text buffer does not.
One is a pointer to an offsets array, another are pointers into the text buffer. If you like C# I can send you my game log processor code and you can walk through the part where pointers are setup, as well as managing the buffer wrapping.
Cooleko does his a little differently than I do but I suspect he has a shorter delay between polling the log, but that's only a guess on my part. So there is more than one way to manage the log.