You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get the host function file to be able to send a message directly to the user code.
It does work by tinkering after some tinkering, but I noticed that the C++ context has some trouble/is slow updating the user code,
if I used timers anywhere in my code.
What happens then is that the user-made function that I'm trying to call (from the host function file), only gets called after a delay, which seemingly is after my own timers have been completed.
It's pretty hard to fix this issue, because apparently the C++ context is limited by exactly 1 call at a time.
Meaning it seems like it waits for the current code/await to be completed, before running the next.
The basic gist is that I have a timer running every second, which tries to call a specific update() method in the user code.
This does work perfectly. But when another event happens in my code, it seems to "wait" until some other previous code is completed, instead of running the code instantly.
Is there an official way to call a method from the user code?
One that doesn't lag when using timers in tandem.
The text was updated successfully, but these errors were encountered:
I've been trying to get the host function file to be able to send a message directly to the user code.
It does work by tinkering after some tinkering, but I noticed that the C++ context has some trouble/is slow updating the user code,
if I used timers anywhere in my code.
What happens then is that the user-made function that I'm trying to call (from the host function file), only gets called after a delay, which seemingly is after my own timers have been completed.
It's pretty hard to fix this issue, because apparently the C++ context is limited by exactly 1 call at a time.
Meaning it seems like it waits for the current code/await to be completed, before running the next.
The basic gist is that I have a timer running every second, which tries to call a specific update() method in the user code.
This does work perfectly. But when another event happens in my code, it seems to "wait" until some other previous code is completed, instead of running the code instantly.
Is there an official way to call a method from the user code?
One that doesn't lag when using timers in tandem.
The text was updated successfully, but these errors were encountered: