FBX IO: Speed up export by multithreading array compression #105018
@ -133,9 +133,9 @@ def json2fbx(fn):
|
|||||||
|
|
||||||
fn_fbx = "%s.fbx" % os.path.splitext(fn)[0]
|
fn_fbx = "%s.fbx" % os.path.splitext(fn)[0]
|
||||||
print("Writing: %r " % fn_fbx, end="")
|
print("Writing: %r " % fn_fbx, end="")
|
||||||
json_root = []
|
|
||||||
with open(fn) as f_json:
|
with open(fn) as f_json:
|
||||||
json_root = json.load(f_json)
|
json_root = json.load(f_json)
|
||||||
|
with encode_bin.FBXElem.enable_multithreading_cm():
|
||||||
fbx_root, fbx_version = parse_json(json_root)
|
fbx_root, fbx_version = parse_json(json_root)
|
||||||
print("(Version %d) ..." % fbx_version)
|
print("(Version %d) ..." % fbx_version)
|
||||||
encode_bin.write(fn_fbx, fbx_root, fbx_version)
|
encode_bin.write(fn_fbx, fbx_root, fbx_version)
|
||||||
|
Loading…
Reference in New Issue
Block a user