Do you have mobs turned on? There've been crashes observed concerning that (mobs + generating chunks), and Rev 521 should have fixed it.
The queue size is arbitrary, there's no actually problem enlarging it. The log message was mainly meant as a means for us devs to know if the chunk generation is fast enough.
I think what you'd need more is a means to know when a chunk has been generated, some sort of a hook, perhaps? But I'm not sure if I can do such a thing, after all, Lua integration has been done by FakeTruth. I'd prefer if he did that
FakeTruth, could you make a new hook, "chunk ready", that is triggerred in cWorld::SetChunkData() ? I know that hook would be called for chunks loaded as well as generated, but then the plugin can check the size of the generator queue to decide whether to queue more chunks.
I can make a simple query function that would return the number of chunks in the generator queue (and possibly in the lighting queue as well), that should be as simple as marking a function "tolua_export", shouldn't it?
EDIT: The query functions have been done (Rev 524):
cWorld::GetGeneratorQueueLength();
cWorld::GetLightingQueueLength();
cWorld::GetStorageLoadQueueLength();
cWorld::GetStorageSaveQueueLength();
You might want to check the lighting queue as well as the generator queue, because lighting is actually done right after generating a chunk (if it has all neighbors).
The queue size is arbitrary, there's no actually problem enlarging it. The log message was mainly meant as a means for us devs to know if the chunk generation is fast enough.
I think what you'd need more is a means to know when a chunk has been generated, some sort of a hook, perhaps? But I'm not sure if I can do such a thing, after all, Lua integration has been done by FakeTruth. I'd prefer if he did that
FakeTruth, could you make a new hook, "chunk ready", that is triggerred in cWorld::SetChunkData() ? I know that hook would be called for chunks loaded as well as generated, but then the plugin can check the size of the generator queue to decide whether to queue more chunks.
I can make a simple query function that would return the number of chunks in the generator queue (and possibly in the lighting queue as well), that should be as simple as marking a function "tolua_export", shouldn't it?
EDIT: The query functions have been done (Rev 524):
cWorld::GetGeneratorQueueLength();
cWorld::GetLightingQueueLength();
cWorld::GetStorageLoadQueueLength();
cWorld::GetStorageSaveQueueLength();
You might want to check the lighting queue as well as the generator queue, because lighting is actually done right after generating a chunk (if it has all neighbors).