Closed foxostro closed 12 years ago
About 7% of zero-fills during the "warming up" phase at app launch are under addVertex, under the call to alloc. This and fullBlockLighting are the places where the most zero-fills occur.
I wonder whether the zero-fill cost at app launch can be reduced by pre-allocating memory for GSChunkVoxelData objects in a memory pool. This will at least help ensure these objects are packed contiguously in memory.
Moot point now. Closing.
Startup time is slow largely because of a large number of zero-fills under fullBlockLighting. (and maybe other places too)
Investigate possible improvements to reduce this cost, such as reducing the amount of memory used for lighting data.