Help with threads + Script directory
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Help with threads + Script directory
-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
Re: Help with threads + Script directory
You have a typo in your for loop inside your thread code.
"for i, 50000 do" should be "for i=1, 50000 do"
To debug your thread use thread:get("error")
"for i, 50000 do" should be "for i=1, 50000 do"
To debug your thread use thread:get("error")
Code: Select all
function love.update(dt)
if (thread~=nil) then
local e = thread:get("error")
if (e~=nil) then error(e) end
end
end
Re: Help with threads + Script directory
-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
Re: Help with threads + Script directory
-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
Re: Help with threads + Script directory
-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Help with threads + Script directory
Yeah, Thread:start only has arguments like that in 0.9.0.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests