Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a bit of help
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Need a bit of help

Use it if you must, but avoid it if possible. Darkfire did consider this so the example isn't bad, but I want to elaborate on "bug the game."

Every time a callback is triggered (including timers), an index is incremented. This index must not exceed 65535, else the game will crash upon next loading screen.

Usually this is only a worry if you use a rapidly repeating timer. Darkfire's example loops about 5 times in 2 seconds, so it's frequent, but not rapid. To put this into perspective, if you loop a timer as fast as possible, being 60 times in 1 second, you will hit the limit in about 15 minutes of gameplay.

If you can avoid hitting the limit in about 3 hours, I say you're good to do as you please regarding these. This is an engine limitation.

01-20-2019, 07:15 PM
Find


Messages In This Thread
Need a bit of help - by RaXZerGamingZ - 01-19-2019, 07:35 PM
RE: Need a bit of help - by Mudbill - 01-19-2019, 10:22 PM
RE: Need a bit of help - by RaXZerGamingZ - 01-19-2019, 11:22 PM
RE: Need a bit of help - by Darkfire - 01-20-2019, 04:16 PM
RE: Need a bit of help - by RaXZerGamingZ - 01-20-2019, 04:32 PM
RE: Need a bit of help - by Mudbill - 01-20-2019, 07:15 PM



Users browsing this thread: 1 Guest(s)