|
| 22 Mar 2016 03:06 PM |
I was play testing a new game I was working on when suddenly the main game script broke in the middle of a timer in the main game loop saying "Timeout before resuming thread". This completely stopped the main game script, which is a huge issue and I have no idea what caused it. Unlike most of the other forum posts I've read about this it didn't spam it in the output log and it really doesn't take much processing power. The only thing that may have been taking a lot of processing power was a specific vehicle in the game that uses a rather unfriendly to performance loop, but if that's the problem wouldn't it stop that script instead? The game worked perfectly for several rounds before this as well which makes it even more strange and the vehicles continued to work perfectly normal, server scripts and all afterwards. Does anyone have any help to offer here?
The part of the script it was running was:
repeat wait(1) game.Workspace.timer.Value = game.Workspace.timer.Value - 1 until game.Workspace.timer.Value < 1
Probably not the biggest performance killer. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 22 Mar 2016 03:23 PM |
| just use a for loop for a timer |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2016 03:57 PM |
| That part of the script is only a fragment, not the entire thing. Also an update: This is happening with a ton of scripts in the game where it really shouldn't, does my game just require to much from the server or something? My computer runs it perfectly fine in Play Solo and Test Servers, but servers will have crazy lag spikes and it's during those lag spikes that things break. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2016 11:02 AM |
| Same thing is happening to me lol, I think it has to do with slow internet connection. That is what I got out of it from the research I did. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2016 11:13 AM |
I just got this error too and it's broken everything in my game.
|
|
|
| Report Abuse |
|
|
Lem0nzzx
|
  |
| Joined: 08 Feb 2016 |
| Total Posts: 1604 |
|
| |
|
|
| 05 Nov 2016 01:49 PM |
I got this error it said that "Timeout before resuming thread" right after my studio stopped responding (froze)
- 𝓣𝓱𝓮𝓐𝓭𝓭𝓲𝓬𝓽𝓟𝓵𝓪𝔂𝓮𝓻 | Current RAP: R$470 | #DownWithSift |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2016 05:13 PM |
| After some investigation I determined that this was caused by an infinite loop. |
|
|
| Report Abuse |
|
|