Implement basic node side image caching

This commit is contained in:
2023-06-12 23:42:25 +02:00
parent 3f2473d7e0
commit 1676bbb886
5 changed files with 25 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ func RenderJob(job):
# Get rendered image
var img = get_viewport().get_texture().get_image()
var outFile = "%s_%s.png" % [job["type"],job["jobId"]]
var outFile = "%s_%s.png" % [job["type"],str(job["elements"]).hash()]
img.save_png("%s/%s" % [$"/root/Main".output_dir, outFile])
return outFile