Describe the bug
When continuously call setBuffer, the task manager suggests a significant and linear increase of ram usage. If I remove the skip() part, it increases so fast and eventually causes oom and crash the game. I believe it's a bug because GPUT2 does not have such behavior and the ram usage persists even if I stop the code.
To Reproduce
local gpu = computer.getPCIDevices(classes.GPUT1)[1]
local screen = computer.getPCIDevices(classes.FINComputerScreen)[1]
event.listen(gpu)
gpu:bindScreen(screen)
gpu:setSize(150, 50)
local buffer = gpu:getBuffer()
buffer:fill(0, 0, 150, 50, " ", nil, {1, 1, 1, 1})
while true do
gpu:setBuffer(buffer)
gpu:flush()
computer.skip()
end
Expected behavior
Ram usage should be stable
Additional context
version 1.2.0
Describe the bug
When continuously call setBuffer, the task manager suggests a significant and linear increase of ram usage. If I remove the skip() part, it increases so fast and eventually causes oom and crash the game. I believe it's a bug because GPUT2 does not have such behavior and the ram usage persists even if I stop the code.
To Reproduce
Expected behavior
Ram usage should be stable
Additional context
version 1.2.0