5

Allow scripts occasional 1000 ms execution spikes for complex tasks

Suggested by
on April 25, '26
Started

Allow scripts to occasionally spike time execution up to 1000 ms every now and then.
This would allow scripts to do more complex stuff in a single frame when it's only doing it occasionally.

Pros:

  • Scripts that sometimes need to do more complex stuff (that requires up to 1000 ms) can still execute and run, instead of being stopped after 100 ms.
  • Occasional stutters or GC or loading of resources wouldn't cause scripts to stop that happen to exceed 100ms. Well behaved script could utilize a "spike" on 1000 ms occasionally otherwise.
  • Scripts may only utilize to spike execution time once every X seconds.

Cons:

  • Stutter may happen that can affect everyone playing.
  • Notifications in chat should mention that a script took longer than usual to execute (but not stop the script).

Watchers

[ #1 ] by
[ #2 ] by
Loading comments...
Loading comments...
2 comments loaded

Sign in to comment on this suggestion. Sign In