Doug Binks · @dougbinks
678 followers · 970 posts · Server mastodon.gamedev.place

Improving the file saving performance was fairly easy. The octree write function was single threaded. Profiling revealed that the bulk of the time was spent in LZ4 compression.

So I added data parallel using TaskSets which compressed sections of the octree to memory. The main write loop launched several of these, then wrote out the results in order whilst setting off new TaskSets.

github.com/dougbinks/enkiTS

2/N

#tasks #enkits

Last updated 1 year ago