Chunks pre-generation
#11
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 Smile

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).
Reply
Thanks given by:


Messages In This Thread
Chunks pre-generation - by Taugeshtu - 05-03-2012, 07:02 PM
RE: Chunks pre-generation - by xoft - 05-03-2012, 08:50 PM
RE: Chunks pre-generation - by Taugeshtu - 05-04-2012, 02:37 AM
RE: Chunks pre-generation - by xoft - 05-08-2012, 09:56 PM
RE: Chunks pre-generation - by FakeTruth - 05-08-2012, 10:22 PM
RE: Chunks pre-generation - by xoft - 05-26-2012, 01:03 AM
RE: Chunks pre-generation - by Taugeshtu - 05-29-2012, 05:49 AM
RE: Chunks pre-generation - by FakeTruth - 05-29-2012, 07:56 AM
RE: Chunks pre-generation - by xoft - 05-29-2012, 04:40 PM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 03:52 AM
RE: Chunks pre-generation - by xoft - 05-31-2012, 04:09 AM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 05:45 AM
RE: Chunks pre-generation - by xoft - 05-31-2012, 05:54 AM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 05:56 AM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 08:45 PM
RE: Chunks pre-generation - by NiLSPACE - 05-31-2012, 09:00 PM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 09:02 PM
RE: Chunks pre-generation - by xoft - 05-31-2012, 09:24 PM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 09:34 PM
RE: Chunks pre-generation - by xoft - 05-31-2012, 09:48 PM
RE: Chunks pre-generation - by Taugeshtu - 05-31-2012, 10:05 PM
RE: Chunks pre-generation - by xoft - 06-02-2012, 08:19 PM



Users browsing this thread: 1 Guest(s)