Search found 5 matches

by fabsemcfunk
Sat Sep 07, 2019 3:05 pm
Forum: Modding help
Topic: Speed up custom map generation
Replies: 16
Views: 5024

Re: Speed up custom map generation

I'll give it a try. But in order to achieve the result shown in my pictures, I'd have to do some basic vector calculations. Is it possible to get the x and y component of the distance to the next spot? Also, I'd like to use the noise for more stuff than just world generation. Is it possible to store...
by fabsemcfunk
Fri Sep 06, 2019 6:44 am
Forum: Modding help
Topic: Speed up custom map generation
Replies: 16
Views: 5024

Re: Speed up custom map generation

no, I call LuaSurface.set_tiles() only once for each chunk. I'm only new to factorio modding, not to programming ;P
by fabsemcfunk
Thu Sep 05, 2019 10:22 pm
Forum: Modding help
Topic: Speed up custom map generation
Replies: 16
Views: 5024

Re: Speed up custom map generation

Do you have some pictures of what you got so far btw? Sure. Here you go: Factorio_Worley.png Factorio_Worley_3.png at the moment I don't evaluate the noise at each tile, but only once in a 2x2 square, which makes it 4-times faster, but the edges are jagged. The images just show the overall shapes t...
by fabsemcfunk
Thu Sep 05, 2019 8:42 pm
Forum: Modding help
Topic: Speed up custom map generation
Replies: 16
Views: 5024

Re: Speed up custom map generation

Thanks for the feedback! The noise expression system look, although on first sight I don't see a possibility to implement cellular noise with it. But I'll dig deeper! No, you can't parrallize, most of the game - including the lua state - runs single-threaded. I kind of expected that :( But honestly,...
by fabsemcfunk
Tue Sep 03, 2019 10:39 pm
Forum: Modding help
Topic: Speed up custom map generation
Replies: 16
Views: 5024

Speed up custom map generation

I want to implement my own map creation algorithm using my own implementation of Worley / Voronoi Noise in Lua. Unfortunately it turns out to be quite slow which causes a short but noticeable break about once each second which is extremely annoying. I believe this is the case because the game keeps ...

Go to advanced search