I simply run the load-images.lua and tried to load 150 images from another folder.
However, I found that my computer will be very slow when the loaded image number up to 70. Then my computer is dead. [ I added " print('Get #'..i) " in "-- load each image" for-loop to know the exact loaded number.]
-- Go over the file list:images = {}for i,file in ipairs(files) do-- load each imagetable.insert(images, image.load(file))print('Get #'..i)end
I tried to reboot and even add "collectgarbage()", but none ot them worked.
If I just load a few images, like 10 or 20 images, then everything is perfect.
I want to know how to fix this problem?
I simply run the load-images.lua and tried to load 150 images from another folder.
However, I found that my computer will be very slow when the loaded image number up to 70. Then my computer is dead. [ I added " print('Get #'..i) " in "-- load each image" for-loop to know the exact loaded number.]
-- Go over the file list:
images = {}
for i,file in ipairs(files) do
-- load each image
table.insert(images, image.load(file))
print('Get #'..i)
end
I tried to reboot and even add "collectgarbage()", but none ot them worked.
If I just load a few images, like 10 or 20 images, then everything is perfect. I want to know how to fix this problem?