Spellcaster Studios

Make it happen…

Terrible work day…

Most of what I’ve done today got thrown away… That’s a sad thing that sometimes happens in development… I did a lot of experiments with the lake generation code, and I finally found something that I think actually works, by playing around with the parameterization of the algorithm…

screen465

Since this whole process is taking about 50 seconds, I started optimizing the code… One of those tasks (the lengthiest) was to convert the current pathfinding code I have using a STL vector to a STL list (so I could use an insertion sort, instead of searching the whole vector for the best candidate – this made the algorithm take longer because of the nature of STL), and then convert it to use my own list, which was a lot of work, to end up with something that took roughly the same time (while the code complexity increased significantly)…

So I went back to the old code and I’m investigating other optimization possibilities (since taking almost 1.5 minutes to land on a planet seems excessive for me), although I don’t have many ideas on this…

Now listening to “The Classical Conspiracy” by “Epica”

Comment