Nasal Loops: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
Line 37: Line 37:
* However, they are run at the end (IIRC) of the frame, so if you need instant reaction (i.e. interaction back and forth with another subsystem via properties), loops won't be quick enough, and thus listeners would be required.
* However, they are run at the end (IIRC) of the frame, so if you need instant reaction (i.e. interaction back and forth with another subsystem via properties), loops won't be quick enough, and thus listeners would be required.


{{Note|Need to discuss split-frame-loops here!}}
{{Note|Splitting processing across frames can be easily performed using the [[Nasal_Optimisation#PartitionProcessor|PartitionProcessor]]}}


To optimize things in Nasal space, you need to understand where things really ARE slow - for starters, you can use "debug.benchmark()" for this - which is wrapper for two {{func link|systime()}} calls to capture the overhead of the callback.
To optimize things in Nasal space, you need to understand where things really ARE slow - for starters, you can use "debug.benchmark()" for this - which is wrapper for two {{func link|systime()}} calls to capture the overhead of the callback.
308

edits

Navigation menu