I found a little bit speed in Mapgen::spreadLight() in mapgen.cpp. I was able to reduce the average value for the same mapchunks from 67ms to 37ms on my system
Another place is CavesRandomWalk::makeCave() in cavegen.cpp. I reduced the average time from 2783us to 1102us for this loop
- Code: Select all
for (u16 j = 0; j < tunnel_routepoints; j++)
makeTunnel(j % dswitchint == 0);
I used in both cases the same position and the same yaw, so the same mapchunks/caves are generated
I don't want to make a party for this because this currently works with GCC on Linux and I'm not shure if something is messing up, but I think I will try to find more. But it is not easy
If you want to know what I'm doing: I tinker around with OpenMP