Hi guys!
I've noticed that there're heavy FPS drops while creating new texturepacks:
TEST_TEXTUREPACK = TexturePack.new("images/spritesheet1.txt", "images/spritesheet1.png")
--causes significant lag, FPS drops from 60 down to 40, then restores
--spritesheet is not big, it's only 132kb, 1243x1542px |
I've tried it with Core.asyncCall, still lags.
local function LOAD_SPRITESHEET()
TEST_TEXTUREPACK = TexturePack.new("images/spritesheet1.txt", "images/spritesheet1.png")
end
Core.asyncCall(LOAD_SPRITESHEET) |
It seems that 'TexturePack.new' is extremely heavy for some reason
(first thought was to pre-cache texturepacks but it still will cause lots of lags; and pre-cached texturepacks consume lots of ram: 10 pre-cached texturepacks of ~1mb size consume up to ~200mb ram)
Comments
Likes: Apollo14
Likes: Apollo14, antix
https://deluxepixel.com