onTick( ) maxruntime?

Discussion on the Lua Scripting capabilities for RaceCapture/Pro. Also see the <a href="http://autosportlabs.net/RaceCapturePro_Lua_Scripting">Lua Scripting Guide</a>

Moderators: JeffC, stieg

Post Reply
eacmen
Posts: 15
Joined: Fri Dec 30, 2016 7:39 am

onTick( ) maxruntime?

Post by eacmen »

What is the max recommended runtime for onTick? Does this run in a separate RTOS task or is it part of the RCP main loop?

What I am really asking is if onTick takes a long time does it lock up the rest of the RCP from doing anything else?

thanks!
-peter

brentp
Site Admin
Posts: 5986
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Sorry for the delay.

There's no impact on the system with a long running or forever running onTick() - subsequent onTicks() just don't occur until the current onTick() is complete.

Hope this helps,
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

eacmen
Posts: 15
Joined: Fri Dec 30, 2016 7:39 am

Post by eacmen »

Yes that helps alot! Thank you.

Post Reply