Board index FlightGear Development Nasal

Registered timers

Nasal is the scripting language of FlightGear.

Registered timers

Postby wlbragg » Tue Aug 28, 2018 9:47 pm

I hate to ask instead of finding this on my own but I am tired of searching.

I thought I just came across a code block that looped through running timers but i can't find it again.

Is there a way to do this?

Are they registered in the property tree somewhere?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7588
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Registered timers

Postby Hooray » Wed Aug 29, 2018 10:42 am

No, there isn't anything like that - you'd need to expose the SGEventMgr stuff and provide a Nasal/Cppbind API for that.
I once came up with a set of C++ patches doing that, but it didn't pick up much momentum back then.

But this sort of thing will definitely require a few C++ changes, it's trivial to do and could be hugely helpful when troubleshooting Nasal/Canvas issues - as a matter of fact, it could even help understand other callback-related issues (think the infamous effect cache leaking listeners like crazy)

viewtopic.php?f=30&t=28675
Image
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Nasal

Who is online

Users browsing this forum: No registered users and 2 guests