Board index FlightGear Development Nasal

Registered timers

Nasal is the scripting language of FlightGear.

Registered timers

Postby wlbragg » Tue Aug 28, 2018 8: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(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4885
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Registered timers

Postby Hooray » Wed Aug 29, 2018 9: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: 11329
Joined: Tue Mar 25, 2008 8:40 am


Return to Nasal

Who is online

Users browsing this forum: No registered users and 4 guests