Timer freezes
#1

I just realized after debugging my script that my timer for rotating the camera freezes every like 8th time its been called, it updates fine until it reaches like 8th time then it freezes for maybe 1 second and continues till 16th time or so, what could the reason be for this? Its being called every 75ms.
Reply
#2

could be a desync
Reply
#3

Try printing every function call to the console. Could it be that your function needs more than 75ms to execute? Also, what are you trying to do every 75ms?
Reply
#4

According to gettickcount() it takes 0 milliseconds and sometimes 1 to do it.
Код:
[22:36:11] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:12] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:13] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:14] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:15] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:16] Time taken to execute MoveCamera: 0
[22:36:17] Time taken to execute MoveCamera: 0
[22:36:17] Time taken to execute MoveCamera: 0
Reply
#5

Mm i'm trying to picture what you are doing.. what is the movecamera for? Also, try doing it like every 200ms or something.
Reply
#6

show me your timer and how you've done with gettickcount()
Reply
#7

I just did some more testing, I just realized its not only that timer that's fucked, its all my timers (Not that I have many) But I just tried creating another new one randomly, which also stopped at 8th tick, 15th tick 22th tick...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)