Some semi-random thoughts on terrain generation
LuaJIT is faster for code that is run multiple times like a world generator because it compiles the scrits to native code. It claims to be drop in compatible with lua 5.1 so its probably worth giving it a try.

If your writting world generators in lua then we need to rethink how the bindings should work for better performance. I would think we should create an object similar to cluatask as a generator. A plugin would then construct one of these with call backs for the various generating functions. This would avoid the overhead of the hooks system.

If the bottleneck is still the bindings after that then we need to look at a limited form of c++ plugins.
Reply
Thanks given by:


Messages In This Thread
RE: Some semi-random thoughts on terrain generation - by worktycho - 03-23-2014, 10:01 PM



Users browsing this thread: 5 Guest(s)