View Single Post
08-25-08, 08:39 AM   #13
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by kerrang View Post
If you write code which triggers on ON_UPDATE and takes a LONG time to run - can another ON_UPDATE event trigger before the first one is complete
No, the UI is single-threaded. As long as your OnUpdate code is running, no other UI code will run and no video frames will be drawn because the game waits for the UI to be ready before it draws each frame. If you create an infinite loop, for example, you'll completely freeze the game.
  Reply With Quote