Just for fun:
I was just wondering exactly how fast Dusk really is. As you most likely know, speed hasn’t ever really been a main focus of Dusk; Dusk is more of a awesome-features-and-really-easy-to-use engine, with speed as a plus.
That said, guess how many tiles:
https://www.dropbox.com/s/nolf190x1w25r1r/map.mov?dl=0
Hint: I had to encode the map as Lua because JSON took too long to parse.
(ok, so that was more of an interesting fact than a hint. But it is true.)
Hint #2: The map file is ~75 Mb
By the way, here’s the source code for the program in the video, with the irrelevant code cut out (display.setStatusBar, etc., as well as the drag+drop code in main.lua)
[lua]
local dusk = require(“Dusk.Dusk”)
print(“Loading Lua data…”)
local mapData = dusk.loadMap(“impossibly_huge.lua”)
print(“Finished loading Lua data.”)
print(“Building map…”)
local map = dusk.buildMap(“tests/benchmarks/impossibly_huge.lua”)
print(“Done!”)
[/lua]
Answer:
[spoiler]25,000,000 tiles. Twenty-five MILLION. Pretty incredible.
Theoretically, the actual size of the map shouldn’t matter for the engine, just the reading/loading of it. But it makes a fun demonstration![/spoiler]