Jump to content

[SOLVED] editor function getWorldPath() is slow with large filesystems


photo

Recommended Posts

We are working with large asset library and replacing this function with the following shaves a couple  of seconds from our load time.

string getWorldPath() {
  if (engine.world.isLoaded() == 0) return "";
	
  string world_path =  dirname(engine.filesystem.getFileName(basename(engine.world.getName()) + ".world"));
  world_path = relname(engine.getDataPath(),world_path);
  return world_path;
}
Link to comment
  • 1 month later...
×
×
  • Create New...